From 3fb8f77cd569d8aea591df93b906ca9b9430f90f Mon Sep 17 00:00:00 2001 From: Debanjum Date: Sun, 1 Jun 2025 16:55:17 -0700 Subject: [PATCH] Fix terminal tool passed to claude 3.7 sonnet as anthropic operator --- src/khoj/processor/operator/operator_agent_anthropic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khoj/processor/operator/operator_agent_anthropic.py b/src/khoj/processor/operator/operator_agent_anthropic.py index 70489342..9d4db42f 100644 --- a/src/khoj/processor/operator/operator_agent_anthropic.py +++ b/src/khoj/processor/operator/operator_agent_anthropic.py @@ -505,7 +505,7 @@ class AnthropicOperatorAgent(OperatorAgent): elif tool_type == "editor": return {"name": "str_replace_editor", "type": "text_editor_20250124"} elif tool_type == "terminal": - return {"name": "bash_20250124", "type": "bash"} + return {"name": "bash", "type": "bash_20250124"} elif self.vision_model.name.startswith("claude-sonnet-4") or self.vision_model.name.startswith("claude-opus-4"): if tool_type == "computer": return {"name": "computer", "type": "computer_20250124"}