From 5fe8e697a9f6ddaa70a5cf205acc09c437f95da6 Mon Sep 17 00:00:00 2001 From: Sam Alghaithi Date: Sat, 29 Aug 2026 22:07:10 -0700 Subject: [PATCH] fix: keep the gandr branch's bindings branch-local in audio_speech --- litellm/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/litellm/main.py b/litellm/main.py index 42e5b4d0538..5ea91e4f489 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -8214,7 +8214,7 @@ def speech( if api_key is not None: litellm_params_dict["api_key"] = api_key - response: Final = base_llm_http_handler.text_to_speech_handler( + response = base_llm_http_handler.text_to_speech_handler( model=model, input=input, voice=voice_id, @@ -8246,17 +8246,17 @@ def speech( model=model, llm_provider=custom_llm_provider, ) - voice_id: Final = voice_input.strip() + gandr_voice_id: Final = voice_input.strip() if api_base is not None: litellm_params_dict["api_base"] = api_base if api_key is not None: litellm_params_dict["api_key"] = api_key - response = base_llm_http_handler.text_to_speech_handler( + response = base_llm_http_handler.text_to_speech_handler( # rebind-ok: every provider branch assigns response for the shared return model=model, input=input, - voice=voice_id, + voice=gandr_voice_id, text_to_speech_provider_config=gandr_config, text_to_speech_optional_params=optional_params, custom_llm_provider=custom_llm_provider,