gencay / vscode-chatgpt

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

Any way to handle Gateway Timeout? #144

Closed A11en0 closed 1 year ago

A11en0 commented 1 year ago

It will time out after several minutes, just like below.

image

So does it has any methods to resolve it? Following is my opinion:

Listen to the user inputs, If there's no input span a time (e.g. 3 min, refer to the ChatGPT website), and then automatically give it a short sentence like "say hi" in the background to re-activate the dialog.

gencay commented 1 year ago

Hi @A11en0 I assume this happens in the browser autologin method. Your suggestion seems to be a reasonable solution to it. I am not sure what the default time span for chat.openai.com though. If you find out let me know. I will think about a solution and let you know if this gets released.

gencay commented 1 year ago

On the recent release you can now refresh the tab you are on to refresh your chatgpt - vscode connection. Please check it out