mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-17 04:34:25 +00:00
style(deepseek): use PEP 585 builtins in downgrade signature
Satisfy the ruff strict-rule budget gate (UP006): use list/tuple instead of typing.List/Tuple in the new _downgrade_json_schema_to_json_object signature, which had pushed the repo's UP006 total over its ceiling.
This commit is contained in:
parent
8bff334e1b
commit
6e0077693a
1 changed files with 2 additions and 2 deletions
|
|
@ -139,9 +139,9 @@ class DeepSeekChatConfig(OpenAIGPTConfig):
|
|||
def _downgrade_json_schema_to_json_object(
|
||||
self,
|
||||
model: str,
|
||||
messages: List[AllMessageValues],
|
||||
messages: list[AllMessageValues],
|
||||
optional_params: dict,
|
||||
) -> Tuple[List[AllMessageValues], dict]:
|
||||
) -> tuple[list[AllMessageValues], dict]:
|
||||
"""
|
||||
DeepSeek's /chat/completions rejects `response_format={"type": "json_schema"}`
|
||||
with "This response_format type is unavailable now" — no DeepSeek model
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue