Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b84d76a

Browse filesBrowse files
committed
Fix: add default stop sequence to chatml chat format
1 parent 1b376c6 commit b84d76a
Copy full SHA for b84d76a

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎llama_cpp/llama_chat_format.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_chat_format.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def format_chatml(
565565
_messages = _map_roles(messages, _roles)
566566
_messages.append((_roles["assistant"], None))
567567
_prompt = _format_chatml(system_message, _messages, _sep)
568-
return ChatFormatterResponse(prompt=_prompt)
568+
return ChatFormatterResponse(prompt=_prompt, stop=_sep)
569569

570570

571571
@register_chat_completion_handler("functionary")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.