fix format

This commit is contained in:
Bao Nguyen 2026-05-03 23:17:16 -07:00
parent 9dacaf3957
commit e9740dc7f3

View file

@ -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: