From 72982e4342c44595b44b046df7f015b4708b273c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 17 Jun 2026 03:05:19 +0000 Subject: [PATCH] fix: normalize content-type header case in whisper transcription fallback --- litellm/llms/openai/transcriptions/whisper_transformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/openai/transcriptions/whisper_transformation.py b/litellm/llms/openai/transcriptions/whisper_transformation.py index dc46918874b..2c01156fe05 100644 --- a/litellm/llms/openai/transcriptions/whisper_transformation.py +++ b/litellm/llms/openai/transcriptions/whisper_transformation.py @@ -133,7 +133,7 @@ class OpenAIWhisperAudioTranscriptionConfig(BaseAudioTranscriptionConfig): try: raw_response_json = raw_response.json() except json.JSONDecodeError: - content_type = raw_response.headers.get("content-type", "") + content_type = raw_response.headers.get("content-type", "").lower() if "application/json" in content_type: raise return TranscriptionResponse(text=raw_response.text)