Fix: add default stop sequence to chatml chat format
This commit is contained in:
parent
1b376c62b7
commit
b84d76a844
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ def format_chatml(
|
|||
_messages = _map_roles(messages, _roles)
|
||||
_messages.append((_roles["assistant"], None))
|
||||
_prompt = _format_chatml(system_message, _messages, _sep)
|
||||
return ChatFormatterResponse(prompt=_prompt)
|
||||
return ChatFormatterResponse(prompt=_prompt, stop=_sep)
|
||||
|
||||
|
||||
@register_chat_completion_handler("functionary")
|
||||
|
|
Loading…
Reference in a new issue