Description
When using deepseek-v4-flash model with Hermes Agent, tool calls fail with the following error:
HTTP 400: The reasoning_content in the thinking mode must be passed back to the API
Root Cause
The deepseek-v4-flash model has thinking mode enabled by default. When the model makes a tool call, the API returns a reasoning_content field in the response. According to DeepSeek's API requirements, subsequent requests must include this reasoning_content to maintain conversation continuity.
However, Hermes currently does not handle the reasoning_content field from DeepSeek API responses, causing the tool call to fail on the next request.
Technical Details
Description
When using
deepseek-v4-flashmodel with Hermes Agent, tool calls fail with the following error:Root Cause
The
deepseek-v4-flashmodel has thinking mode enabled by default. When the model makes a tool call, the API returns areasoning_contentfield in the response. According to DeepSeek's API requirements, subsequent requests must include thisreasoning_contentto maintain conversation continuity.However, Hermes currently does not handle the
reasoning_contentfield from DeepSeek API responses, causing the tool call to fail on the next request.Technical Details
The reasoning_content in the thinking mode must be passed back to the API