gencay / vscode-chatgpt

An unofficial Visual Studio Code - OpenAI ChatGPT integration
ISC License
3.5k stars 755 forks source link

ChatGPT error 400 #154

Closed HaiNick closed 1 year ago

HaiNick commented 1 year ago

I get this error even though I've been using it for months and haven't changed any of the settings except switch to API key.

error 400

what can I do?

a342108611 commented 1 year ago

I've had the same problem, and it's been bothering me

gencay commented 1 year ago

Hi - it could be also related to the token length exceeding the openai max token length of 4096 and the extension default of 1024. Please note that these max tokens are shared between your request and responses. You could try to increase the maxToken setting to 2048 and see if that helps.

When you just type Hi, do you get a proper response?

HaiNick commented 1 year ago

I didn't change anything and everything works again. Just by waiting. I will change to maxToken to 2048 anyway