fix(chatgpt5.4): made changes as requested in review for Black formatting

This commit is contained in:
Harsh2KumarPrasad 2026-04-26 18:50:36 +05:30
parent 8737116220
commit 0a12589f98

View file

@ -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