Skip to content

Commit 3da471d

Browse files
committed
prompt
1 parent 777e18e commit 3da471d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llama_cpp/llama_chat_format.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2523,6 +2523,9 @@ def base_function_calling(
25232523
mirostat_eta=mirostat_eta,
25242524
model=model,
25252525
logits_processor=logits_processor,
2526+
grammar=llama_grammar.LlamaGrammar.from_string(
2527+
follow_up_msg_gbnf_tool_grammar, verbose=llama.verbose
2528+
),
25262529
),
25272530
stream=stream,
25282531
)

0 commit comments

Comments
 (0)