hello.
Thank you so much for the recently announced Gemini-Pro API availability.
We use a lot of APIs, and in the case of OpenAI, we expose cl100k_base so that users can pre-calculate the number of tokens and avoid API errors.
But Gemini-Pro doesn't know anything about the token, so it has to rely on the character count. 😅
Is it possible to share token information like OpenAI's tiktoken?
Thank you for creating good model. 😃
Solved! Go to Solution.
With the Vertex AI SDK (python) -- we compute the number of tokens (and characters) like:
Hey!
With the Vertex AI SDK (python) -- we compute the number of tokens (and characters) like:
Hey!
Thank you so much
Now i can request just once not twice anymore ^^
how to do this with nodejs?
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |