mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-13 12:10:18 +00:00
4 lines
220 B
Django/Jinja
4 lines
220 B
Django/Jinja
{% for message in messages %}{{'<|' + message['role'] + '|>' + '
|
|
' + message['content'] + '<|end|>
|
|
' }}{% endfor %}{% if add_generation_prompt and messages[-1]['role'] != 'assistant' %}{{- '<|assistant|>
|
|
' -}}{% endif %} |