mpociot / chatgpt-vscode

A VSCode extension that allows you to use ChatGPT
4.99k stars 365 forks source link

Issues about TimeoutError #12

Open XY-King opened 1 year ago

XY-King commented 1 year ago

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!

Ethkuil commented 1 year ago

Please check the settinig agian and find chatgpt.timeoutLength.

timkmecl commented 1 year ago

@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)