🐛 Bug Report: Calling openai methods in v1 SDK with with_raw_response
redirect causes crash
#535
Closed
1 task done
Which component is this bug for?
OpenAI Instrumentation
📜 Description
OpenAI's v1 SDK has a
with_raw_responses
redirect that returns a different type, LegacyAPIResponse.The code assumes it's a pydantic model and crashes in this mode.
👟 Reproduction steps
👍 Expected behavior
It should either not trace, but definitely not crash.
👎 Actual Behavior with Screenshots
Will submit test to reproduce
🤖 Python Version
3.11
📃 Provide any additional context for the Bug.
No response
👀 Have you spent some time to check if this bug has been raised before?
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: