style: ruff format deepseek transformation

This commit is contained in:
Daniel Yudelevich 2026-07-14 13:25:23 -07:00
parent 1217091048
commit 1fa07f5397

View file

@ -160,10 +160,7 @@ class DeepSeekChatConfig(OpenAIGPTConfig):
no DeepSeek model supports native json_schema.
"""
response_format = optional_params.get("response_format")
if (
not isinstance(response_format, dict)
or response_format.get("type") != "json_schema"
):
if not isinstance(response_format, dict) or response_format.get("type") != "json_schema":
return messages, optional_params
json_schema: Optional[dict] = None
@ -181,9 +178,7 @@ class DeepSeekChatConfig(OpenAIGPTConfig):
messages = messages + [
{
"role": "user",
"content": response_schema_prompt(
model=model, response_schema=json_schema
),
"content": response_schema_prompt(model=model, response_schema=json_schema),
}
]
optional_params = {