From 01c835aac2bfc676d6213261c6ad6cb7301bb83e Mon Sep 17 00:00:00 2001 From: nanobot-bot Date: Sat, 21 Feb 2026 23:07:18 +0800 Subject: [PATCH] fix(context): Fix 'Missing `reasoning_content` field' error for deepseek provider. --- nanobot/agent/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanobot/agent/context.py b/nanobot/agent/context.py index 876d43d..b3de8da 100644 --- a/nanobot/agent/context.py +++ b/nanobot/agent/context.py @@ -235,7 +235,7 @@ To recall past events, grep {workspace_path}/memory/HISTORY.md""" msg["tool_calls"] = tool_calls # Include reasoning content when provided (required by some thinking models) - if reasoning_content: + if reasoning_content is not None: msg["reasoning_content"] = reasoning_content messages.append(msg)