mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
fix(chatgpt5.4): made changes as requested in review for Black formatting
This commit is contained in:
parent
8737116220
commit
0a12589f98
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue