初始化项目,由ModelHub XC社区提供模型
Model: thanhhoangnvbg/empathAI-llama3.1-8b Source: Original Platform
This commit is contained in:
31
chat_template.jinja
Normal file
31
chat_template.jinja
Normal file
@@ -0,0 +1,31 @@
|
||||
{% if messages[0]['role'] == 'system' %}
|
||||
{% set system_message = messages[0]['content'] | trim %}
|
||||
{% set messages = messages[1:] %}
|
||||
{% else %}
|
||||
{% set system_message = "Bạn là EmpathAI, trợ lý CSKH tiếng Việt giàu sự thấu cảm, chuyên xử lý khiếu nại và hỗ trợ khách hàng." %}
|
||||
{% endif %}
|
||||
|
||||
<|start_header_id|>system<|end_header_id|>
|
||||
|
||||
{{ system_message }}<|eot_id|>
|
||||
|
||||
{% for message in messages %}
|
||||
|
||||
{% if message['role'] == 'user' %}
|
||||
<|start_header_id|>user<|end_header_id|>
|
||||
|
||||
{{ message['content'] | trim }}<|eot_id|>
|
||||
|
||||
{% elif message['role'] == 'assistant' %}
|
||||
<|start_header_id|>assistant<|end_header_id|>
|
||||
|
||||
{{ message['content'] | trim }}<|eot_id|>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% if add_generation_prompt %}
|
||||
<|start_header_id|>assistant<|end_header_id|>
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user