-
Notifications
You must be signed in to change notification settings - Fork 3.9k
All API Errors raised during streaming raise the same generic message ("An error occurred during streaming") #1160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Frequently having the same issue with GPT-4 0116-Preview on Azure OpenAI. |
Just want to re-emphasize: this is a massive quality-of-life loss that, to me, appears to have a easy quick resolution (just put |
Sorry about this! The error messages will be improved in the next release https://github.com/openai/openai-python/pull/1218/files |
I'm having this issue with gpt-4o + agent implementation, can anybody help me out? |
Are you on the latest version? |
|
You are on quite an old version that does not include this fix. Please upgrade |
Uh oh!
There was an error while loading. Please reload this page.
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
All API Errors raised during streaming raise the same generic message ("An error occurred during streaming").
See line 64 of _streaming.py.
The
data["error"]
field is completely disregarded for streaming errors. Instead, it could be read to raise the correct type of error.This is a major quality-of-life issue with custom inference servers that seek to follow the openai standard.
To Reproduce
openai
Python library.Code snippets
A different part of the codebase uses this code snippet:
This latter type of functionality should also be used while iterating over a stream.
The text was updated successfully, but these errors were encountered: