ollama/openai
Devon Rifkin ae9664c01d
openai: allow for content _and_ tool calls in the same message
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
2025-12-29 06:39:50 -06:00
..
openai.go openai: allow for content _and_ tool calls in the same message 2025-12-29 06:39:50 -06:00
openai_test.go openai: allow for content _and_ tool calls in the same message 2025-12-29 06:39:50 -06:00