浏览代码

Disable parallel tool use

It's unlikely to happen in practice and even less likely to be useful
Alessandro Pignotti 4 月之前
父节点
当前提交
56ee9ac3f5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/lib/anthropic.js

+ 1 - 0
src/lib/anthropic.js

@@ -42,6 +42,7 @@ async function sendMessages(handleTool)
 									system: "You are running on a virtualized machine. Wait some extra time after all operations to compensate for slowdown.",
 									model: 'claude-3-7-sonnet-20250219',
 									tools: [tool],
+									tool_choice: {type: "auto", disable_parallel_tool_use: true},
 									betas: ["computer-use-2025-01-24"]
 								});
 		// Remove all the image payloads, we don't want to send them over and over again