Skip to content
Snippets Groups Projects
Commit 7a070a37 authored by hananel's avatar hananel
Browse files

unindent the second prompt as well

parent 19984ff3
No related branches found
No related tags found
No related merge requests found
...@@ -96,29 +96,29 @@ class Route(BaseModel): ...@@ -96,29 +96,29 @@ class Route(BaseModel):
logger.info("Generating dynamic route...") logger.info("Generating dynamic route...")
prompt = f""" prompt = f"""
You are tasked to generate a JSON configuration based on the provided You are tasked to generate a JSON configuration based on the provided
function schema. Please follow the template below, no other tokens allowed: function schema. Please follow the template below, no other tokens allowed:
<config> <config>
{{ {{
"name": "<function_name>", "name": "<function_name>",
"utterances": [ "utterances": [
"<example_utterance_1>", "<example_utterance_1>",
"<example_utterance_2>", "<example_utterance_2>",
"<example_utterance_3>", "<example_utterance_3>",
"<example_utterance_4>", "<example_utterance_4>",
"<example_utterance_5>"] "<example_utterance_5>"]
}} }}
</config> </config>
Only include the "name" and "utterances" keys in your answer. Only include the "name" and "utterances" keys in your answer.
The "name" should match the function name and the "utterances" The "name" should match the function name and the "utterances"
should comprise a list of 5 example phrases that could be used to invoke should comprise a list of 5 example phrases that could be used to invoke
the function. Use real values instead of placeholders. the function. Use real values instead of placeholders.
Input schema: Input schema:
{function_schema} {function_schema}
""" """
llm_input = [Message(role="user", content=prompt)] llm_input = [Message(role="user", content=prompt)]
output = llm(llm_input) output = llm(llm_input)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment