Closed jsullivan-zonos closed 11 months ago
:eyes: @Yun-Kim
Hi @jsullivan-zonos, thanks for reaching out!
We've already addressed this in #7759, but this hasn't been released yet (I imagine we'll get this released in the upcoming two weeks). Once this is released in 2.4.0 or 2.3.2, please give it a try.
Closing because this has been fixed. Please reopen if the issue persists after a version upgrade.
Summary of problem
An exception is being raised by ddtrace when using OpenAI's vision models. This vision models accept a list of dictionaries in the
content
field, instead of just a string.Minimal test case
Traceback
Which version of dd-trace-py are you using?
2.3.1
Which version of pip are you using?
23.0.1
Which libraries and their versions are you using?
openai==1.3.7
`pip freeze`
How can we reproduce your problem?
See above minimal example.
What is the result that you get?
A runtime exception when using gpt-4 vision
What is the result that you expected?
No exception being raised and proper tracing for vision models.