fix(vertex_ai): conditionally add 'audio' only for TTS models in get_supported_openai_params

This commit is contained in:
Monesh Ram 2026-02-21 17:14:58 +05:30 committed by GitHub
parent 5441c62c30
commit de0124a7e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -271,7 +271,6 @@ class VertexGeminiConfig(VertexAIBaseConfig, BaseConfig):
"modalities",
"parallel_tool_calls",
"web_search_options",
"audio",
]
# Add penalty parameters only for non-preview models
@ -281,6 +280,8 @@ class VertexGeminiConfig(VertexAIBaseConfig, BaseConfig):
if supports_reasoning(model):
supported_params.append("reasoning_effort")
supported_params.append("thinking")
if "tts" in model:
supported_params.append("audio")
return supported_params
def map_tool_choice_values(