ai-genie / chatgpt-vscode

Your best AI pair programmer in VS Code
https://marketplace.visualstudio.com/items?itemName=genieai.chatgpt-vscode
ISC License
1.22k stars 76 forks source link

request to https://api.openai.com/v1/chat/completions failed, reason: Parse Error: Expected HTTP/ #18

Open JeannieRenee opened 1 year ago

JeannieRenee commented 1 year ago

Verify it's not a duplicate bug report

Describe the Bug

Every call Genie responds with "request to https://api.openai.com/v1/chat/completions failed, reason: Parse Error: Expected HTTP/".

Please tell us if you have customized any of the extension settings or whether you are using the defaults.

I am using the default settings.

Additional context

I have uninstalled and reinstalled the app. I have deleted and re-entered my secret key.

genieai-info commented 1 year ago

Could you please check if you are able to make a curl request to OpenAI using the same API Key you are using in this extension following these troubleshooting guides: https://github.com/ai-genie/chatgpt-vscode#common-issues. Make sure to provide your own API Key to the curl request mentioned in the guide.