-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[VertexAI] Add support for token-based usage metrics #14406
Conversation
Token measurement is broken down by modaliy, with separate counters for image, audio, etc.
There are other classes that could use the modality name
- Conform to DecodableProtoEnum instead of CodableProtoEnum - Remove unspecified cases
friendly ping |
FirebaseVertexAI/Tests/Unit/vertexai-sdk-test-data/mock-responses
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a couple minor test nits.
Note: I'm going to add integration tests in a separate PR.
Use empty if missing
Comments addressed. Also, added change to make fields non-nullable cc @andrewheard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on green CI.
Token measurement is broken down by modaliy, with separate counters for image, audio, etc.