Skip to content

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