ZIm/crates/language_models
Oleksiy Syvokon ae219e9e99
agent: Fix bug with double-counting tokens in Gemini (#31885)
We report the total number of input tokens by summing the numbers of
1. Prompt tokens
2. Cached tokens

But Google API returns prompt tokens (1) that already include cached
tokens (2), so we were double counting tokens in some cases.

Release Notes:

- Fixed bug with double-counting tokens in Gemini
2025-06-02 10:18:44 +00:00
..
src agent: Fix bug with double-counting tokens in Gemini (#31885) 2025-06-02 10:18:44 +00:00
Cargo.toml language_models: Fetch Zed models from the server (#31316) 2025-05-23 23:00:35 +00:00
LICENSE-GPL Add language_models crate to house language model providers (#20945) 2024-11-20 18:49:34 -05:00