Skip to content

Commit

Permalink
refac: improved fc prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed Jun 1, 2024
1 parent a4abc1b commit be5f596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/function_calling_filter_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
"""
)

Expand Down

0 comments on commit be5f596

Please sign in to comment.