From 0a12589f988b48874eb4c0251c0d6f6a3a44f16f Mon Sep 17 00:00:00 2001 From: Harsh2KumarPrasad Date: Sun, 26 Apr 2026 18:50:36 +0530 Subject: [PATCH] fix(chatgpt5.4): made changes as requested in review for Black formatting --- litellm/llms/chatgpt/responses/transformation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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