[PR #11761] openai: when converting role=tool messages, propagate the tool name #13620

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

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

State: closed
Merged: Yes


Added support for converting both name and tool_call_id fields, which different clients might provide. name is a legacy field from the OpenAI completions API. For tool_call_id we inspect previous messages and look for a matching tool call ID and grab its name

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

**Original Pull Request:** https://github.com/ollama/ollama/pull/11761 **State:** closed **Merged:** Yes --- Added support for converting both `name` and `tool_call_id` fields, which different clients might provide. `name` is a legacy field from the OpenAI completions API. For `tool_call_id` we inspect previous messages and look for a matching tool call ID and grab its name Issue: https://github.com/ollama/ollama/issues/11704
GiteaMirror added the pull-request label 2026-04-13 00:31:25 -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#13620