mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
fix(vertex_ai): conditionally add 'audio' only for TTS models in get_supported_openai_params
This commit is contained in:
parent
5441c62c30
commit
de0124a7e0
1 changed files with 2 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue