Open liorchamla opened 1 year ago
This could potentially be a firewall or connectivity issue.
Can you try calling the open ai api with curl to check that the connection works?
E.g. with their example:
curl https://api.openai.com/v1/completions \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"model": "text-davinci-003",
"prompt": "Say this is a test",
"max_tokens": 7,
"temperature": 0
}'
It works fine using cURL :'(
i have the same but when I select chatGPT4. the curl works fine for me
Has anyone found out how to solve this? I suspect it may have something to do with changing API keys? Have any of you changed the API key and then stumbled upon this?
SOLVED
I too, had this issue.
In my settings.json
I previously had "rubberduck.model": "gpt-4"
.
Setting it to "rubberduck.model": "gpt-3.5-turbo",
solved the issue.
Testing 6 times, three with each model and it failed every time I used gpt-4
😥
To confirm the accuracy of the code, I pasted it into a Quokka JavaScript file and it indeed is accurate 😃
It would be nice to have a 'Copy Code' button, in addition to the 'Export Conversation' 👍
I am enjoying this new VS Code extension! Well done!
Just after installation, it is impossible to chat with OpenAI
I just installed the extension on my VSCode (see specifications below), added my OpenAI Api Key and tried to start a conversation, many times, and failed each time.
How to reproduce
Install the extension on this VSCode environment :
Add OpenAI API key and start a new conversation, and you get this error : `Error: Unknown error calling OpenAI API (status=undefined)``
The Rubberduck Logs shows :
Expected behavior
We should have a generated answer
Screenshots
Additional information