Skip to content

How to get cost of generation using the SDK #215

@rsmekala

Description

@rsmekala

Description of the bug:

No response

Actual vs expected behavior:

I wanted to calculate the cost of generation when using Google Gemini. When I use the API it's response contains a field called UsageMetadata. Is this available in the SDK as well ??

Any other information you'd like to share?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions