fix(context): Fix 'Missing reasoning_content field' error for deepseek provider.

This commit is contained in:
nanobot-bot
2026-02-21 23:07:18 +08:00
parent 8de36d398f
commit 01c835aac2

View File

@@ -235,7 +235,7 @@ To recall past events, grep {workspace_path}/memory/HISTORY.md"""
msg["tool_calls"] = tool_calls msg["tool_calls"] = tool_calls
# Include reasoning content when provided (required by some thinking models) # Include reasoning content when provided (required by some thinking models)
if reasoning_content: if reasoning_content is not None:
msg["reasoning_content"] = reasoning_content msg["reasoning_content"] = reasoning_content
messages.append(msg) messages.append(msg)