diff --git a/examples/function_calling_filter_pipeline.py b/examples/function_calling_filter_pipeline.py index 70afcdbd..43bae4d9 100644 --- a/examples/function_calling_filter_pipeline.py +++ b/examples/function_calling_filter_pipeline.py @@ -149,7 +149,7 @@ async def inlet(self, body: dict, user: Optional[dict] = None) -> dict: 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." """ )