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
Hey @arcaputo3 thanks for pointing this out, this is something that may have gone unnoticed. Retry behavior implies that there can be many calls to the client API. This calls will add up to a total_usage. This total usage is not being overwrited correctly in each call. I just finished a fix for it. Waiting on approval.
Always remember that usage information corresponds to the compounded usage from the requests and any subsequent retry.
What Model are you using?
Describe the bug
When using
create_with_completion
,CompletionUsage.completion_tokens_details
andCompletionUsage.prompt_tokens_details
are bothNone
To Reproduce
Expected behavior
Using OpenAI directly, we have non-null values
The text was updated successfully, but these errors were encountered: