8000 up · themrzmaster/llama-cpp-python@ba1e2f7 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit ba1e2f7

Browse files
committed
up
1 parent f7569e0 commit ba1e2f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llama_cpp/llama_chat_format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,9 +2466,9 @@ def base_function_calling(
24662466
)
24672467
msg_gbnf_grammar = (
24682468
"""root ::= message | functions\n"""
2469-
"""message ::= "message: " [^\n]* "\n"\n"""
2469+
f"""message ::= "message: " [^{end_token}]* "{end_token}"\n"""
24702470
f"""functions ::= {function_names}\n"""
2471-
)
2471+
)
24722472

24732473

24742474
prompt = template_renderer.render(

0 commit comments

Comments
 (0)
0