You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
With #344 there's an oversight: When the OpenAI fetch fails without a JSON error in the body, it will still result in an error being raised, but it will be a JSON parse exception.
To Reproduce
Tweak spec/fixtures/cassettes/gpt-3_5-turbo_streamed_chat_with_error_response.yml to return a 500 and remove the body (or make it invalid JSON).
Expected behavior
A Faraday Internal Server Error should be raised with the original response body.
Additional context
I broke this. I'm fixing it. PR incoming soon.
The text was updated successfully, but these errors were encountered:
Describe the bug
With #344 there's an oversight: When the OpenAI fetch fails without a JSON error in the body, it will still result in an error being raised, but it will be a JSON parse exception.
To Reproduce
Tweak spec/fixtures/cassettes/gpt-3_5-turbo_streamed_chat_with_error_response.yml to return a 500 and remove the
body
(or make it invalid JSON).Expected behavior
A Faraday Internal Server Error should be raised with the original response body.
Additional context
I broke this. I'm fixing it. PR incoming soon.
The text was updated successfully, but these errors were encountered: