[PR #11759] openai: allow for content _and_ tool calls in the same message #13618

Closed
opened 2026-04-13 00:31:22 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/11759

State: closed
Merged: Yes


Previously our OpenAI chat completions compat layer assumed that tool calls and content would never be provided together, but this is not a correct assumption. Content is only optional when tool calls are present, but tool calls and content can be provided together

Fixes: https://github.com/ollama/ollama/issues/11704

**Original Pull Request:** https://github.com/ollama/ollama/pull/11759 **State:** closed **Merged:** Yes --- Previously our OpenAI chat completions compat layer assumed that tool calls and content would never be provided together, but this is not a correct assumption. Content is only optional when tool calls are present, but tool calls and content can be provided together Fixes: https://github.com/ollama/ollama/issues/11704
GiteaMirror added the pull-request label 2026-04-13 00:31:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13618