Skip to content

Commit 27764e3

Browse files
authored
Add support for jinja break for Cohere
1 parent b1d23df commit 27764e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llama_cpp/llama_chat_format.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ def __init__(
211211
loader=jinja2.BaseLoader(),
212212
trim_blocks=True,
213213
lstrip_blocks=True,
214+
extensions=["jinja2.ext.loopcontrols"]
214215
).from_string(self.template)
215216

216217
def __call__(

0 commit comments

Comments
 (0)