add message.content check to prevent UndefinedError

#4

If an assistant message lacks content (e.g., tool-call-only messages), accessing message.content will cause a Jinja2 UndefinedError

SK Telecom org

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

Sign up or log in to comment