Fix chat_template for tool-calling
#22
by
ishelaputov
- opened
Fixed condition for message with role "tool"
From:
{%- if message.content is mapping or message.content is iterable %}
To:
{%- if message.content is mapping or (message.content is iterable and not message.content is string) %}
String in Python iterable too.