Fix Jinja2 crash: ensure content key always exists in messages
- Add explicit check for missing content key in message dictionaries - Use more aggressive regex patterns in strip_tool_calls_from_content - Handle tool call tags in various formats (JSON, XML, tool names) - Add checks in format_messages, _manual_format_messages, and chat_completions endpoint - Fixes: 'dict object' has no attribute 'content' error in Jinja2 templates
Showing
Please
register
or
sign in
to comment