Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Undefined/ai/llm/thinking.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ def normalize_thinking_override(
type_value = raw_type.strip().lower()
if type_value in {"enabled", "disabled"}:
# DeepSeek 仅接受 {type: enabled|disabled},其它字段原样透传
return {"type": type_value} if is_deepseek else dict(value)
if is_deepseek:
return {"type": type_value}
normalized = dict(value)
normalized["type"] = type_value
return normalized

raw_enabled = value.get("enabled")
if isinstance(raw_enabled, bool):
Expand Down
Loading
Loading