We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e32386 commit bb08c4eCopy full SHA for bb08c4e
llama_cpp/llama_chat_format.py
@@ -4272,10 +4272,10 @@ def gguf_function_calling(
4272
initial_gbnf_tool_grammar = (
4273
f"""
4274
root ::= message_only | message_with_functions | functions_only
4275
- message_only ::= "message:" content
4276
- message_with_functions ::= "message:" content "<function_calls>\\n" functions
+ message_only ::= "message:" anytext
+ message_with_functions ::= "message:" anytext "<function_calls>\\n" functions
4277
functions_only ::= "<function_calls>\\n" functions
4278
- content ::= ([^<] | "<" [^f] )+
+ anytext ::= ANYCHAR+
4279
functions ::= {function_names}
4280
"""
4281
if tool_choice == "auto"
0 commit comments