agentscope-java icon indicating copy to clipboard operation
agentscope-java copied to clipboard

[Bug]:DeepSeek thinking mode + 工具调用场景下,第二轮对话必然触发 HTTP 400

Open tingyun-cute opened this issue 7 months ago • 4 comments

AgentScope-Java is an open-source project. To involve a broader community, we recommend asking your questions in English.

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. You code
  2. How to execute
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Error messages Detailed error messages.

Environment (please complete the following information):

  • AgentScope-Java Version: [e.g. 1.0.11, check your pom.xml dependency version or run mvn dependency:tree | grep agentscope-parent:pom(only mac/linux)]
  • Java Version: [e.g. 17]
  • OS: [e.g. macos, windows]

Additional context Add any other context about the problem here.

tingyun-cute avatar Apr 25 '26 03:04 tingyun-cute

能否提供复现代码和报错日志 ?

jujn avatar Apr 25 '26 07:04 jujn

你这是模型本身的问题,thinking模式下多次循环执行工具,出现了content=null导致的,mono类需要兼容

BeastDamon avatar Apr 27 '26 06:04 BeastDamon

https://api-docs.deepseek.com/zh-cn/guides/thinking_mode#%E5%B7%A5%E5%85%B7%E8%B0%83%E7%94%A8 我也遇到了,导致问题的原因是deepseek要求传工具调用时的reasoning_content

PaiaHuai avatar Apr 28 '26 06:04 PaiaHuai

I'd like to work on this issue.

Mrjyw avatar May 02 '26 03:05 Mrjyw