Skip to content

Expose usageMetadata so response token count can be seen #49

Description

@ScottishRoss

I see we have a way to count tokens that we send to Gemini using gemini.countTokens(), but we need a way to see the tokens that we are recieving too. Looking at the Gemini docs, this is done through usageMetadata. Could we get access to this so we can get an accurate token count?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions