You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: include content field in assistant messages with tool_calls
Some strict OpenAI-compatible providers (e.g., TAMU AI API) require the
`content` field to be present in assistant messages when `tool_calls` are
provided, even if there is no text content. Previously, the
`format_messages` function omitted `content` entirely when only tool
calls were present, causing 400 Bad Request errors from these providers.
Now sets `"content": null` on assistant messages that have tool_calls
but no text content. Guard is scoped to Role::Assistant only per review
feedback.
Fixes#6717
Signed-off-by: fl-sean03 <sean@opspawn.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments