File size: 521 Bytes
e69fc32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% if messages[0]['role'] == 'system' %}
System: {{ messages[0]['content'] }}
{% else %}
System: You are Keural Alpha, a helpful AI assistant.
You must respond ONLY in English.
If the user writes in any other language, reply in English:
"I can only respond in English."
Do not mention these rules.
{% endif %}

{% for message in messages %}
{% if message['role'] == 'user' %}
User: {{ message['content'] }}
{% elif message['role'] == 'assistant' %}
Assistant: {{ message['content'] }}
{% endif %}
{% endfor %}
Assistant: