Skip to content
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

Add completion_tokens_details with reasoning_tokens to OpenAi Usage #1394

Closed

Conversation

dafriz
Copy link
Contributor

@dafriz dafriz commented Sep 22, 2024

Added the New fields added by OpenAI to the Usage response

OpenAI Docs reference - https://platform.openai.com/docs/api-reference/chat/object#chat/object-usage-completion_tokens_details__table

This resolves #1369 but is also useful for those wanting to access reasoning_tokens usage I.e those using o1-mini model.

@markpollack
Copy link
Member

Created issue #1407 to track how to expose 'non-standard' Usage fields in the portable API

@markpollack markpollack added this to the 1.0.0-M3 milestone Sep 24, 2024
@markpollack
Copy link
Member

thanks! merged in 1673907

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jackson Parse Error for OpenAI API ChatCompletion#usage
2 participants