litellm/tests/test_litellm/llms/gemini
nlineback e223cadb9f
fix: add speechConfig to GenerationConfig for Gemini TTS (#17851)
Moved speechConfig from RequestBody to GenerationConfig TypedDict so that
TTS configuration survives the filtering in _transform_request_body().

This fixes the 400 INVALID_ARGUMENT error when using Gemini TTS models
(gemini-2.5-flash-tts, gemini-2.5-flash-preview-tts, etc.) with both
vertex_ai and gemini providers.

Fixes: speechConfig was being created correctly in map_openai_params()
but then filtered out because GenerationConfig.__annotations__.keys()
didn't include it.

Tested with both preview and non-preview TTS model names and both
vertex_ai and gemini providers.
2025-12-12 03:56:44 -08:00
..
image_edit Add Gemini image edit support (#16430) 2025-11-12 18:48:27 -08:00
realtime Litellm fix GitHub action testing (#11163) 2025-05-26 14:41:42 -07:00
videos Add Vertex and Gemini Videos API with Cost Tracking + UI support (#16323) 2025-11-08 16:03:51 -08:00
test_gemini_client_setup.py Fix/gemini api key environment variable support (#12507) 2025-07-29 15:56:01 -07:00
test_gemini_common_utils.py Fix gemini cli error (#14417) 2025-09-12 11:56:51 -07:00
test_gemini_tts.py fix: add speechConfig to GenerationConfig for Gemini TTS (#17851) 2025-12-12 03:56:44 -08:00