From 56ee9ac3f54edae0e6420c5723b8d22c7ec311fa Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Sun, 2 Mar 2025 14:02:41 +0100 Subject: [PATCH] Disable parallel tool use It's unlikely to happen in practice and even less likely to be useful --- src/lib/anthropic.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/anthropic.js b/src/lib/anthropic.js index 26561a4..90ab89c 100644 --- a/src/lib/anthropic.js +++ b/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