refac: improved fc prompt

This commit is contained in:
Timothy J. Baek 2024-06-01 00:07:14 -07:00
parent a4abc1b01f
commit be5f596d2a

View File

@ -149,7 +149,7 @@ And answer according to the language of the user's question.""",
fc_system_prompt = (
f"Functions: {json.dumps(function_specs, indent=2)}"
+ """
If a function doesn't match the query, return an empty string. Else, pick a function, fill in the parameters from the function's schema, and return it in the format { "name": \"functionName\", "parameters": { "key": "value" } }. Only pick a function if the user asks."
If a function doesn't match the query, return an empty string. Else, pick a function, fill in the parameters from the function'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."
"""
)