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

[Vertex AI] Add integration tests for modality usage metrics #14446

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

andrewheard
Copy link
Contributor

@andrewheard andrewheard commented Feb 11, 2025

Added integration tests for the new modality-specific token usage metrics added in #14406.

Note: Added a tolerance (accuracy) of 1 on the candidate and total token counts since they can differ between runs due to trailing whitespace tokens. This is not the case for prompt token counts which are deterministic since they are provided as input.

#no-changelog

@andrewheard andrewheard marked this pull request as ready for review February 11, 2025 23:27
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.

3 participants