Skip to content

fix: parse service tier in usage metadata#2444

Open
MukundaKatta wants to merge 1 commit into
googleapis:mainfrom
MukundaKatta:codex/usage-metadata-service-tier
Open

fix: parse service tier in usage metadata#2444
MukundaKatta wants to merge 1 commit into
googleapis:mainfrom
MukundaKatta:codex/usage-metadata-service-tier

Conversation

@MukundaKatta
Copy link
Copy Markdown
Contributor

Fixes #2435.\n\nAdds service_tier to GenerateContentResponseUsageMetadata so responses containing usageMetadata.serviceTier validate instead of failing on an extra field, and covers the camelCase response payload with a focused unit test.\n\nValidation:\n- uv run --with pytest pytest google/genai/tests/common/test_common.py -q -k usage_metadata_service_tier\n- python3 -m compileall -q google/genai/types.py google/genai/tests/common/test_common.py\n- git diff --check

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

Successfully merging this pull request may close these issues.

service_tier field is missing from GenerateContentResponseMetadata model

1 participant