litellm/tests/unit/llms/gemini
shrey kharbanda 613caa5e39
fix(gemini): fall back to the local estimate when Gemini's count fails
The Gemini counter now returns a failed count for API errors, connection
errors, timeouts, non-JSON bodies and responses without an integer
totalTokens, so the proxy falls back to its local estimate instead of
answering 500
2026-09-27 04:14:46 +00:00
..
audio_transcription test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
count_tokens fix(gemini): fall back to the local estimate when Gemini's count fails 2026-09-27 04:14:46 +00:00
files test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
google_genai test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
image_edit test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
realtime test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
videos test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
__init__.py test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
test_cost_calculator.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
test_gemini_client_setup.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
test_gemini_common_utils.py fix(gemini): fall back to the local estimate when Gemini's count fails 2026-09-27 04:14:46 +00:00
test_gemini_image_generation_transformation.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
test_gemini_tts.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00