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:
teleprint-me 2024-05-15 12:54:55 -04:00
parent cfe659d90a
commit b4b6f1fa00
No known key found for this signature in database
GPG key ID: B0D11345E65C4D48

View file

@ -76,6 +76,7 @@ def render_chat_template(
{"role": "assistant", "content": "Hello! How may I assist you today?"},
{"role": "user", "content": "Can you tell me what pickled mayonnaise is?"},
{"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: