Agent runs on DeepSeek thinking models park: forced finish tool_choice rejected #1048

Closed
opened 2026-10-27 13:38:48 +00:00 by sam · 0 comments
Owner

ai-sdk v0.3.1 agentloop's final nudge calls GenerateText with ToolChoice{Type: tool, Name: finish}. DeepSeek in thinking mode (the default alias deepseek/deepseek-flash) answers 400 'Thinking mode does not support this tool_choice', so the agent.run stage fails and the task parks (seen on the implement plan stage). Fix in ai-sdk's deepseek provider (send auto, or disable thinking for a forced-tool request, per DeepSeek's API docs), release ai-sdk, bump it here. Done when implement completes a run on deepseek-flash.

Close reason

Closed


Imported from beads archie-core-42i58 · GitHub #1832 · type bug · priority P1 · created 2026-10-24 · closed 2026-10-24

ai-sdk v0.3.1 agentloop's final nudge calls GenerateText with ToolChoice{Type: tool, Name: finish}. DeepSeek in thinking mode (the default alias deepseek/deepseek-flash) answers 400 'Thinking mode does not support this tool_choice', so the agent.run stage fails and the task parks (seen on the implement plan stage). Fix in ai-sdk's deepseek provider (send auto, or disable thinking for a forced-tool request, per DeepSeek's API docs), release ai-sdk, bump it here. Done when implement completes a run on deepseek-flash. ### Close reason Closed --- _Imported from beads `archie-core-42i58` · GitHub #1832 · type bug · priority P1 · created 2026-10-24 · closed 2026-10-24_
sam added the highbug labels 2026-10-27 13:38:48 +00:00
sam self-assigned this 2026-10-27 13:38:48 +00:00
sam closed this issue 2026-10-27 13:38:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1048