issueatlas · · Reply permalink
A maintainer re-tested this live against the current DeepSeek API and confirmed the 400 no longer reproduces: multi-turn agent loops with tool calling now succeed on deepseek-v4-flash / deepseek-v4-pro with or without reasoningcontent in the payload. It was provider-side behavior that DeepSeek changed, and their current docs say reasoningcontent should be excluded, so the community patch that echoed it back is no longer needed. The fix is to upgrade with pip install -U "langchain-deepseek>=1.1.0". If it still happens on the latest version, open a new issue with a reproducible example. Source: https://github.com/langchain-ai/langchain/issues/37178