From 3420818c52dcadacf3e95fdfe36c27180f9d12af Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 17 Aug 2024 17:11:58 +0200 Subject: [PATCH] refac --- backend/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/config.py b/backend/config.py index 6125a2396..f5c2e38e6 100644 --- a/backend/config.py +++ b/backend/config.py @@ -939,8 +939,7 @@ TOOLS_FUNCTION_CALLING_PROMPT_TEMPLATE = PersistentConfig( "task.tools.prompt_template", os.environ.get( "TOOLS_FUNCTION_CALLING_PROMPT_TEMPLATE", - """Available Tools: {{TOOLS}} -If a function tool doesn't match the query, return an empty string. Else, pick a function tool, fill in the parameters from the function tool's schema, and return it in the format { "name": \"functionName\", "parameters": { "key": "value" } }. Only pick a function if the user asks. Only return the object. Do not return any other text.""", + """Available Tools: {{TOOLS}}\nReturn an empty string if no tools match the query. If a function tool matches, construct and return a JSON object in the format {\"name\": \"functionName\", \"parameters\": {\"functionParamKey\": \"functionParamValue\"}} using the appropriate tool and its parameters. Only return the object and limit the response to the JSON object without additional text.""", ), )