You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"{{ message.role.upper() }}\n"# Vicuna uses upper case for roles
2815
+
"{% endif %}"
2806
2816
# System message
2807
2817
"{% if message.role == 'system' %}"
2808
2818
"{{ message.content }}"
2809
2819
"{% if tool_calls %}"
2810
2820
"\n\nYou have access to the following functions:\n"
2811
2821
"{% for tool in tools %}"
2812
2822
"\nfunctions.{{ tool.function.name }}:\n"
2813
-
"{{ tool.function.parameters | tojson }}"
2823
+
"{{ tool.function.parameters }}"
2814
2824
"\n{% endfor %}"
2815
2825
"\n\nYou can respond to users messages with either a single message or multiple function calls, never both. If function calls are used, they must be the first part of the response."
2816
2826
"\n\nTo respond with one or more function calls begin the message with 'functions.<function_name>:', use the following format:"
"\nAfter performing a function call, the function will send a response containing the return values of the function calls between <tool_output> tags. Present it to the user.\n"
"\nYou can respond to users messages with either a single message or one or more function calls. Never both. Prioritize function calls over messages."
2914
-
"\nTo respond with a message begin the message with 'message:'"
2915
-
'\n Example sending message: message: "Hello, how can I help you?"'
2916
-
"\nTo respond with one or more function calls begin the message with 'functions.<function_name>:', use the following format:"
2924
+
"\nYou can respond to user messages either by sending a single message or by making one or more function calls. You should never do both. Always prioritize function calls over messages."
2925
+
"\nTo send a response message, start your message with 'message:'"
2926
+
'\nExample of sending a message: message: "Hello, how can I help you?"'
2927
+
"\nTo use one or more function calls, start your response with 'functions.<function_name>:', follow this format:"
2917
2928
"\nfunctions.<function_name>:"
2918
2929
'\n{ "arg1": "value1", "arg2": "value2" }'
2919
2930
"\nfunctions.<function_name>:"
2920
2931
'\n{ "arg1": "value1", "arg2": "value2" }'
2921
-
"\nWhen you are done with the function calls, end the message with </done>."
2922
-
'\nStart your output with either message: or functions. <|eot_id|>\n'
2932
+
"\nWhen you have completed entering function calls, end your output with '</done>'."
2933
+
'\nStart your output with either "message:" or "functions.". Do not mix the two.'
2934
+
"\nAfter performing a function call, the function will send a response containing the return values of the function calls between <tool_output> tags. Present it to the user.\n"
2935
+
#"Example: <tool_output> item: Cheeseburguer, price: 12 </tool_output> You should output: I found a Cheeseburguer that costs 12 dollars."
2923
2936
"{% endif %}"
2937
+
"<|eot_id|>\n"
2924
2938
"{% for message in messages %}"
2925
-
"{% if message.role == 'tool'%}"
2939
+
"{% if message.role == 'tool'%}"
2926
2940
"<|start_header_id|>user<|end_header_id|>\n\n"
2927
-
"here is the Function response, bring it to me in a nice way: {{ message.content | default('No response available') }}"
0 commit comments