Fix chat_template for tool-calling

#22

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.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment