First time here? Check out the FAQ!
1

Customizing the base url used to access OpenAI's API

When using AI Assistant, can I customize Openai's third-party proxy or forwarding company URL instead of using Openai's official URL directly?

hongyi-zhao's avatar
547
hongyi-zhao
asked 2024-02-23 22:21:41 -0500
Wingware Support's avatar
4.1k
Wingware Support
updated 2024-02-27 08:39:43 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Not currently. To access the API we're just importing and using the openai Python package provided by OpenAI. It looks like https://stackoverflow.com/questions/776… has the info needed to develop this option, but right now there's no way to get the sub-process we use for communicating with OpenAI to use a proxy. We'll try to add this soon.

Wingware Support's avatar
4.1k
Wingware Support
answered 2024-02-26 08:17:34 -0500
edit flag offensive 0 remove flag delete link

Comments

1

By saying proxy/agent, it can mean different things, e.g., 1. change the openai base URL of the request, 2. send the request via a proxy server.

If we can customize all these things, it should be more convenient.

hongyi-zhao's avatar hongyi-zhao (2024-02-26 18:28:22 -0500) edit

Sounds good. We'll try to add both. Thanks!

Wingware Support's avatar Wingware Support (2024-02-27 08:40:09 -0500) edit

BTW, you could probably already experiment with this by editing the files in plugins/ai in your Wing installation. You'll have to be careful to uninstall and remove remaining files before installing an update from an installer, and if we patch those files via the update manager then our changes will replace yours, so it can get confusing.

Wingware Support's avatar Wingware Support (2024-02-27 08:43:56 -0500) edit

How can I completely delete these files? Is the following command sufficient: $ sudo apt remove --purge wingpro10

hongyi-zhao's avatar hongyi-zhao (2024-02-27 18:43:59 -0500) edit

If you plan to change files in the Wing installation probably the best thing is to use the tar file installer, which just writes the install to a directory you select. You can use different directories each time you install, if necessary. If you do use the .deb, just check for and remove anything left in /usr/lib/wingpro10 after you remove wingpro10.

Wingware Support's avatar Wingware Support (2024-02-27 19:04:17 -0500) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer