acheong08 / ChatGPT

Reverse engineered ChatGPT API
GNU General Public License v2.0
28k stars 4.48k forks source link

[Bug] Error has not been raised correctly in V3 if server facing issues while processing api #1433

Closed gchust closed 1 year ago

gchust commented 1 year ago

I am facing the following error while call the V3 ask API with model gpt-4-0613. (Note: the status_code is 200) image

The ask_stream_async will not raise any errors correctly, instead it will continue to add an entry {"role": "", "content": ""} to the conversation history, which will block all conversation after that error API call: image image