Skip to content

LLM model information in usage metadata. #4084

@ZachTB123

Description

@ZachTB123

** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.

Is your feature request related to a problem? Please describe.
Token usage in live events for bidi streaming was added in 6e5c0eb. We would like to be able to track this data per model, e.g. gemini-live-2.5-flash, similar to how google ai platform metrics track model id as an attribute in the data. This would be helpful when we are using several different models and want to track the usage per model.

Describe the solution you'd like
This data being available in the GenerateContentResponseUsageMetadata object or somewhere else in the yielded Event.

Describe alternatives you've considered
None

Additional context
None

Metadata

Metadata

Assignees

Labels

live[Component] This issue is related to live, voice and video chat

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions