add message.content check to prevent UndefinedError
#4
by
togetherhaiku
- opened
If an assistant message lacks content (e.g., tool-call-only messages), accessing message.content will cause a Jinja2 UndefinedError
Thanks for catching this edge case and providing a fix.
The issue you described is valid, and the proposed change appropriately handles assistant messages without a content field.
We’ll merge this PR.
singleheart
changed pull request status to
merged