Merge PR #947 to Fix 'Missing reasoning_content field' error for deepseek provider.
fix(context): Fix 'Missing `reasoning_content` field' error for deepseek provider.
This commit is contained in:
@@ -236,7 +236,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)
|
||||
|
||||
Reference in New Issue
Block a user