-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
Tokens details are null
when using create_with_completion
#1104
Comments
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 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: