google / google/langextract

Request: Token Count on Gemini (all) APIs

Open
#155 3 comments 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
38.6k
Forks
2.7k
Avg merge
3d 15h
Merged PRs (30d)
3

Description

Hola,

First off, very cool library! Thank you for sharing.

I haven't delved too deep into the codebase, and may just fork and add this feature myself if it isn't planned, but I'd like to retrieve token counts from the ai providers (specifically Gemini). I'm unsure how that interacts with the library, though. Does each 'pass' send the entire document, prompt and all, to the API, so each call would be multiplied by the number of passes?

Either way, are token counts planned to be included generally?

Thanks again!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.