8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d981d32 commit 98eb092Copy full SHA for 98eb092
llama_cpp/llama_chat_format.py
@@ -1009,7 +1009,7 @@ def format_qwen(
1009
**kwargs: Any,
1010
) -> ChatFormatterResponse:
1011
_roles = dict(user="<|im_start|>user", assistant="<|im_start|>assistant")
1012
- system_message = "You are a helpful assistant."
+ system_message = _get_system_message(messages) or "You are a helpful assistant."
1013
system_template = "<|im_start|>system\n{system_message}"
1014
system_message = system_template.format(system_message=system_message)
1015
_messages = _map_roles(messages, _roles)
0 commit comments