From 5ce2be732e9b69a94f08a2bfc654f3c355e58747 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Mon, 20 Oct 2025 17:10:09 -0700 Subject: [PATCH] get_provider_text_to_speech_config --- litellm/utils.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/litellm/utils.py b/litellm/utils.py index ed6bbee73f..c2e245acb5 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -7632,11 +7632,14 @@ class ProviderConfigManager: ) if litellm.LlmProviders.AZURE == provider: - from litellm.llms.azure.text_to_speech.transformation import ( - AzureAVATextToSpeechConfig, - ) + # Only return Azure AVA config for Azure Speech Service models (speech/) + # Azure OpenAI TTS models (azure/azure-tts) should not use this config + if model.startswith("speech/"): + from litellm.llms.azure.text_to_speech.transformation import ( + AzureAVATextToSpeechConfig, + ) - return AzureAVATextToSpeechConfig() + return AzureAVATextToSpeechConfig() return None @staticmethod