From c7ab631bb045caebc588b94a890305612d47146e Mon Sep 17 00:00:00 2001 From: Chesars Date: Fri, 27 Feb 2026 16:06:10 -0300 Subject: [PATCH] fix(audio): detect gpt-realtime models as audio-capable for Chat Completions gpt-realtime-1.5 supports Chat Completions with audio params but is_model_gpt_audio_model only checked for "audio" in the model name. Add "realtime" check so the audio parameter is passed through correctly. --- litellm/llms/openai/chat/gpt_audio_transformation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/llms/openai/chat/gpt_audio_transformation.py b/litellm/llms/openai/chat/gpt_audio_transformation.py index 581ffea2db..66270b1da9 100644 --- a/litellm/llms/openai/chat/gpt_audio_transformation.py +++ b/litellm/llms/openai/chat/gpt_audio_transformation.py @@ -29,7 +29,9 @@ class OpenAIGPTAudioConfig(OpenAIGPTConfig): return all_openai_params + audio_specific_params def is_model_gpt_audio_model(self, model: str) -> bool: - if model in litellm.open_ai_chat_completion_models and "audio" in model: + if model in litellm.open_ai_chat_completion_models and ( + "audio" in model or "realtime" in model + ): return True return False