Skip to content

Commit

Permalink
make input similar to example
Browse files Browse the repository at this point in the history
  • Loading branch information
hananelll committed Jan 11, 2024
1 parent 0a0a205 commit 19984ff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions semantic_router/utils/function_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,17 @@ def extract_function_inputs(
"output": "<class 'float'>",
}}
Result: {{
Result:
{{
"location": "Hawaii",
"degree": "Kelvin",
}}
Input:
query: {query}
schema: {function_schema}
query: \"{query}\"
schema:
{json.dumps(function_schema, indent=4)}
Result:
"""
llm_input = [Message(role="user", content=prompt)]
Expand Down

0 comments on commit 19984ff

Please sign in to comment.