Skip to content

Add support for getting usage tokens for openaiAPI #829

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

Closed
wants to merge 1 commit into from

Conversation

YanjiuHe
Copy link

@YanjiuHe YanjiuHe commented Jun 6, 2024

fix #814

@tzolov
Copy link
Contributor

tzolov commented Jun 24, 2024

@YanjiuHe I believe the 20e4b56 resolves #814 ?

@markpollack
Copy link
Member

markpollack commented Jul 2, 2024

I'm going to be reviewing the classes for ChatResponse and metadata, I think it was a mistake to inherit from HashMap, instead a hashmap should be used as a field to capture any non-standard metadata.

These changes only move the storage of the objects into the hashmap, the functionality to get usage tokens is already available. Am I missing something?

@tzolov tzolov assigned markpollack and unassigned tzolov Jul 29, 2024
@markpollack markpollack modified the milestones: 1.0.0-M2, 1.0.0-RC1 Aug 20, 2024
@ilayaperumalg
Copy link
Member

@YanjiuHe The usage tokens are retrieved for both call and stream operations. Could you give the latest milestone a try and re-open if you still see the issue?

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

Successfully merging this pull request may close these issues.

Add Support for get usage tokens
4 participants