[Bug]:DeepSeek thinking mode + 工具调用场景下,第二轮对话必然触发 HTTP 400
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:
- You code
- How to execute
- 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.
能否提供复现代码和报错日志 ?
你这是模型本身的问题,thinking模式下多次循环执行工具,出现了content=null导致的,mono类需要兼容
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
I'd like to work on this issue.