mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
fix format
This commit is contained in:
parent
9dacaf3957
commit
e9740dc7f3
1 changed files with 5 additions and 6 deletions
|
|
@ -49,12 +49,11 @@ class DeepSeekChatConfig(OpenAIGPTConfig):
|
|||
|
||||
# Handle thinking parameter - accept {"type": "enabled"} or {"type": "disabled"}
|
||||
if thinking_value is not None:
|
||||
if isinstance(thinking_value, dict) and thinking_value.get(
|
||||
"type"
|
||||
) in ("enabled", "disabled"):
|
||||
optional_params["thinking"] = {
|
||||
"type": thinking_value["type"]
|
||||
}
|
||||
if isinstance(thinking_value, dict) and thinking_value.get("type") in (
|
||||
"enabled",
|
||||
"disabled",
|
||||
):
|
||||
optional_params["thinking"] = {"type": thinking_value["type"]}
|
||||
|
||||
# Handle reasoning_effort - map to thinking enabled/disabled
|
||||
elif reasoning_effort is not None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue