Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it possible to add proxy support? #7

Closed
shencp opened this issue Mar 22, 2023 · 4 comments
Closed

is it possible to add proxy support? #7

shencp opened this issue Mar 22, 2023 · 4 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@shencp
Copy link

shencp commented Mar 22, 2023

Describe the feature

just add the proxy support as this extension:https://github.com/gencay/vscode-chatgpt

@shencp shencp added the enhancement New feature or request label Mar 22, 2023
@genieai-info
Copy link

The proxy on the original ChatGPT extension was implemented only for Browser integration, which is no longer supported in this extension.

To utilize proxies in vs code extensions though, you have a couple of options, which are out of this extension's capability but a vs code setting you can use in your vs code. Try adding the following to your user settings.json:

"remote.extensionKind": {"genieai.chatgpt-vscode": ["ui"]

Also if you are running the proxy locally on http you can bypass the SSL and try adding these (Change URL with your own proxy) in your User settings.json:

"http.proxy": "http://127.0.0.1:1234/",
"http.proxyStrictSSL": false,

More on using proxies in extensions

@genieai-info genieai-info added the question Further information is requested label Mar 22, 2023
@shencp
Copy link
Author

shencp commented Mar 30, 2023

Thanks for your response, it works for me right now. 😀

@shencp shencp closed this as completed Mar 30, 2023
@qcgm1978
Copy link

"remote.extensionKind": {"genieai.chatgpt-vscode": ["ui"]
What's meaning of this setting? It not work for me. But the following works:
"http.proxy": "http://127.0.0.1:1234/", "http.proxyStrictSSL": false,

@IlmariKu
Copy link

IlmariKu commented Jan 8, 2024

If anyone found this issue and is looking to make a reverse-proxy to be used with Genie, here's my implementation of a mock-server for Azure OpenAI. I can input my mock-server URL and have Genie work out of the box with it.

You probably need to add "http.proxyStrictSSL": false-rule for it to work.

https://gist.github.com/IlmariKu/ca59013e5a76f3636f02daa75ac93549

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants