diff --git a/litellm/llms/chatgpt/responses/transformation.py b/litellm/llms/chatgpt/responses/transformation.py index 3d79fa447da..5bf041e006e 100644 --- a/litellm/llms/chatgpt/responses/transformation.py +++ b/litellm/llms/chatgpt/responses/transformation.py @@ -150,7 +150,9 @@ class ChatGPTResponsesAPIConfig(OpenAIResponsesAPIConfig): return completed_response @staticmethod - def _should_use_openai_json_response_parser(raw_response: Any, body_text: str) -> bool: + def _should_use_openai_json_response_parser( + raw_response: Any, body_text: str + ) -> bool: content_type = (raw_response.headers or {}).get("content-type", "") if "text/event-stream" in content_type.lower(): return False