From 0fe93b797906b3129b88db222838be3145b12a8b Mon Sep 17 00:00:00 2001 From: Quinlan Jager Date: Tue, 6 May 2025 12:10:56 -0700 Subject: [PATCH] Fix typo in tool_prompt: add missing space before 'available' --- aider/coders/base_coder.py | 2 +- aider/coders/base_prompts.py | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index ac1fc3485..b0ba1165d 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -1549,7 +1549,7 @@ class Coder: tool_call_response = litellm.stream_chunk_builder(self.partial_response_tool_call) if self.process_tool_calls(tool_call_response): self.num_tool_calls += 1 - return self.run(with_message="Continue", preproc=False) + return self.run(with_message="Continue with tool call response", preproc=False) self.num_tool_calls = 0 diff --git a/aider/coders/base_prompts.py b/aider/coders/base_prompts.py index b5b252a0b..e7fb79d3f 100644 --- a/aider/coders/base_prompts.py +++ b/aider/coders/base_prompts.py @@ -56,15 +56,13 @@ Do not edit these files! no_shell_cmd_prompt = "" no_shell_cmd_reminder = "" - tool_prompt = """Answer the user's request using the relevant tool(s), if they are available. -Check that all the required parameters for each tool call are provided or can reasonably be -inferred from context. IF there are no relevant tools or there are missing values for required -parameters, ask the user to supply these values; otherwise proceed with the tool calls. If the -user provides a specific value for a parameter (for example provided in quotes), make sure to -use that value EXACTLY. -DO NOT make up values for or ask about optional parameters. Carefully analyze descriptive terms in -the request as they may indicate required parameter values that should be included even if not -explicitly quoted. + tool_prompt = """ALWAYS Answer the user's request using the relevant tool(s), if they are +available. +Do your best to infer required parameters from your context. If the user provides a +specific value for a parameter (for example provided in quotes), make sure to use that +value EXACTLY. +Carefully analyze descriptive terms in the request as they may indicate required parameter values +that should be included even if not explicitly quoted. """ rename_with_shell = ""