mpociot / chatgpt-vscode

A VSCode extension that allows you to use ChatGPT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues about TimeoutError

KinXY opened this issue · comments

Hi and thank you for developing this amazing extension! It is so useful and efficient!
However, there is a small problem that i have met using this extension:
If the answer of ChatGPT is too long, e.g., I am asking it to write the structure of a rather long program, its answer will first be printed out and then be shut down by the extension for the following error:
[ERROR] TimeoutError: ChatGPT timed out waiting for response
I understand that keep generating long code can get freshman rely too much on ChatGPT LOL, but can you add a feature in the setting to determine the time for timeout error?
Looking forward to hearing from you soon!

Please check the settinig agian and find chatgpt.timeoutLength.

@KinXY In the updated version of my fork (also already available on the Marketplace) the error is only appended at the end of the already written input, so you can still use what was already shown even if a timeout/error occurs. This should help you with your issue. (Timeout currently automatically happens from OpenAI's end after around one minute even if it is set to longer in the setting)