I’m Jay (Nguyen Thieu Toan), an Verified n8n Creator, and I’d like to raise a concern that is starting to affect quite a few users and clients who are trying to adopt DeepSeek inside n8n for production AI Agent workflows.
Right now, whenever DeepSeek Chat Model is used with AI Agent + tools, we consistently run into the error “The reasoning_content in the thinking mode must be passed back to the API.” From what I can see in recent threads and GitHub issues, this has already been acknowledged as a known limitation in how reasoning_content is handled when the agent calls tools, but there hasn’t been a visible fix shipped yet. In practice, this means that for serious agent use cases (where tools are essential), DeepSeek is effectively not a viable option inside the official n8n nodes.
What worries me is that the community is starting to rely on unofficial DeepSeek nodes or custom patches just to work around this, which solves the error for some people but introduces new risks: inconsistent behavior, harder maintenance, and less confidence for teams that want to standardize on n8n as their main automation and AI platform. This isn’t just a “nice to have” anymore; DeepSeek has become a real alternative that many builders and clients actively prefer over OpenAI or Gemini/Vertex, and the current limitation is blocking them from using it properly with agents and tools.
Could you please share an update on the status of the official fix for DeepSeek + AI Agent tool calls (the reasoning_content handling), and whether there is an estimated release window we can communicate to our users and clients? Even a rough indication like “planned and in progress for an upcoming minor release” would already help a lot of us decide whether to wait for the official implementation or keep investing in community‑level workarounds.
Thanks in advance for any clarity you can provide here on behalf of the growing group of n8n users who want to use DeepSeek in a stable, first‑class way.
The root cause is how n8n/LangChain appends messages to the history during tool execution loops; DeepSeek is strict about receiving its own generated reasoning_content back in subsequent API calls, or it breaks with a 400 error.
Thanks @sergeys - that’s a precise explanation of the root cause. So the fix would need to happen at the LangChain message history layer, where n8n strips or preserves reasoning_content between tool calls. That’s not something we can patch at the node level without changes to how the AI Agent structures its message history. I’ll open a GitHub issue with this root cause detail so the core team has a clear target.
Quick update from the OP here, after digging a lot deeper into this and running a bunch of production tests with AI Agent + tools.
I’ve built and published a dedicated community node that completely avoids the reasoning_content error for DeepSeek in n8n. In my tests, the issue is not really a LangChain or n8n bug, but comes from how DeepSeek designs and validates its thinking mode and tool calls: as soon as the model enters thinking mode and emits reasoning_content, it becomes very strict about seeing that same reasoning_content replayed in every subsequent call whenever tools are involved; otherwise, it returns a 400.
Because of that, I decided to go with a simpler, more predictable approach for now: disable thinking mode entirely for agent use cases and prevent DeepSeek from generating any reasoning_content in the first place. That way, there is nothing to replay across tool loops, and the AI Agent can call tools without tripping over DeepSeek’s strict validation rules.
The result is a community node that you can safely use for AI Agents + tools in production:
Install the package: n8n-nodes-deepseek-chat-model
Restart the n8n container after installation
In your AI Agent, select DeepSeek Chat Model from this community node as the chat model
Make sure thinking mode is disabled in the node’s options, then keep your tools configured as usual
One important caveat: even with the reasoning_content issue out of the way, DeepSeek is still a bit tricky around tool calling in general. You can still run into behavior like:
Repeated tool calls in a single reasoning step
Hard-to-control tool loops on complex prompts or very long context.
So if you need very high reliability for agent + tools workflows, I’d recommend:
Using this DeepSeek community node with thinking mode off to avoid reasoning_content 400s
Adding guardrails at the workflow level (max tool call count, conditions before reusing the same tool, detailed logging per loop)
And, depending on your use case, still considering more mature models for tool calling when predictability is absolutely critical
Hope this helps anyone who finds this thread while trying to get DeepSeek working with n8n AI Agents. If anyone from the n8n team wants details about how the node works around the DeepSeek quirks, I’m happy to share more context and test cases.