mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
The embedding cache split a batch's usage evenly across its inputs, so a cached text input came back with half of an image's tokens. The Gemini batch response now carries each input's own usage, attributed by modality, and the cache stores that when it is present
A usage detail entry with no tokenCount no longer drops Google's whole prompt count. The gemini-embeddings-002 cost case now expects Google's 7 tokens over the local count
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| bridge_cost_parity | ||
| cases | ||
| stream_parity | ||
| assertions.py | ||
| catalog.py | ||
| conftest.py | ||
| cost_map.py | ||
| cost_tracking_case.py | ||
| test_base_model_cross_provider_spend.py | ||
| test_batch_realtime_cost.py | ||
| test_bridged_previous_response_id_spend.py | ||
| test_cost_tracking.py | ||