fix: End messages with a user role due to jinja2 conditional checks
Signed-off-by: teleprint-me <77757836+teleprint-me@users.noreply.github.com>
This commit is contained in:
parent
cfe659d90a
commit
b4b6f1fa00
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ def render_chat_template(
|
||||||
{"role": "assistant", "content": "Hello! How may I assist you today?"},
|
{"role": "assistant", "content": "Hello! How may I assist you today?"},
|
||||||
{"role": "user", "content": "Can you tell me what pickled mayonnaise is?"},
|
{"role": "user", "content": "Can you tell me what pickled mayonnaise is?"},
|
||||||
{"role": "assistant", "content": "Certainly! What would you like to know about it?"},
|
{"role": "assistant", "content": "Certainly! What would you like to know about it?"},
|
||||||
|
{"role": "user", "content": "Is it just regular mayonnaise with vinegar or something else?"},
|
||||||
]
|
]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue