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 support for completion_tokens_details #258

Open
nezhyborets opened this issue Feb 2, 2025 · 0 comments
Open

Add support for completion_tokens_details #258

nezhyborets opened this issue Feb 2, 2025 · 0 comments

Comments

@nezhyborets
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
While reviewing #255 that improves support for Reasoning Models, in the reasoning models guide I saw that they made changes to usage.completion_tokens_details. We don't have the field at all, so it was impossible to implement all the changes discussed in the guide.

Describe the solution you'd like
Add completionTokenDetails: CompletionTokensDetails to ChatResult.CompletionUsage. See if it can be non-optional. See if its fields can be non-optional.

Additional context
Completion tokens details and its fields seem to appear only in special cases: Predicted Outputs, Reasoning Models, Audio input. So it may be hard to test, debug and research, because currently Demo doesn't support any of the listed features. Here is a task that may be related #257

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

No branches or pull requests

1 participant