mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix(deepseek): retain mutable request mapping contract
This commit is contained in:
parent
c000144685
commit
e890f0c657
1 changed files with 2 additions and 2 deletions
|
|
@ -61,11 +61,11 @@ class DeepSeekChatConfig(OpenAIGPTConfig):
|
|||
|
||||
if (
|
||||
model.removeprefix("deepseek/").startswith(("deepseek-v4-", "deepseek-flash"))
|
||||
and optional_params.get("thinking") == {"type": "enabled"}
|
||||
and not (isinstance(thinking_value, dict) and thinking_value.get("type") == "disabled")
|
||||
and isinstance(reasoning_effort, str)
|
||||
and reasoning_effort != "none"
|
||||
):
|
||||
return {**optional_params, "reasoning_effort": reasoning_effort}
|
||||
return {**optional_params, "reasoning_effort": reasoning_effort} # mutable-ok: adapters mutate this dict
|
||||
|
||||
return optional_params
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue