You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
问题说明
最近不清楚是什么原因,大模型调用工具失败的情况特别多。具体表现包括:工具名指定错误、参数给错、工具调用的通道走错,以及直接把工具调用的命令发到聊天框里。有的时候甚至现场纠正都会反复出错。
模型本身没有改动过。
我怀疑是上下文压缩把工具的定义压缩坏了。
我换了多个模型测试,包括官方的 DeepSeek Flash 4.1。

如上图所示。长任务执行中断成了常态。
建议处置
建议官方对漏到对话区里的工具调用进行捕获,并自动给模型一个反馈。否则长任务的自循环经常中断。我们不能依赖模型绝对不调错工具,而应该捕获它调错工具的异常。这样能更友好地兼容能力差一点的模型,允许它犯一些错误,同时保证任务能够自动执行。
另外,当工具使用出错时,建议引导模型重新获取一下工具的定义。现在各种插件横行,优化或压缩上下文很有可能会破坏工具的定义。
All reactions