mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-17 04:34:25 +00:00
style: ruff format deepseek transformation
This commit is contained in:
parent
1217091048
commit
1fa07f5397
1 changed files with 2 additions and 7 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue