ai-genie / chatgpt-vscode

Your best AI pair programmer in VS Code

Home Page:https://marketplace.visualstudio.com/items?itemName=genieai.chatgpt-vscode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is it possible to add proxy support?

shencp opened this issue · comments

commented

Describe the feature

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

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

commented

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

commented

"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,

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