-
Notifications
You must be signed in to change notification settings - Fork 379
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
bug: OpenAI 0.28 chat completion call gives response usage object that cannot be digested by langfuse #1803
Comments
What kind of exception is thrown at the latest OpenAI and Langfuse sdk versions? |
@marcklingen This issue is specific to |
Thanks for confirming, as we are currently extremely busy working on new releases, I'd appreciate contributions to fix this issue for older openai versions. Is there a reason why you cannot upgrade openai? |
Yes, our app wants to provide backward compatibility as much as possible so we support both v1.x and v0.x. I'll try create a fix for this issue soon. Thanks for the update. |
Describe the bug
Highly correlated to #1249 but the problem is specific to direct OpenAI API call. Obtained the same results from @istandleet. A potential fix was suggested by @gautamcrhythemx from that issue.
FYI: I've tried using the old release version as mentioned in that closed issue, but it gives
ImportError
(incompatible with openai==0.28 I think)Please kindly provide any suggestions if possible.
To reproduce
deps
code
Error:
Additional information
No response
The text was updated successfully, but these errors were encountered: