Skip to content

openai: when converting role=tool messages, propagate the tool name #11761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2025

Conversation

drifkin
Copy link
Contributor

@drifkin drifkin commented Aug 7, 2025

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: #11704

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: #11704
@drifkin drifkin merged commit 223a619 into main Aug 7, 2025
8 checks passed
@drifkin drifkin deleted the drifkin/openai-tool-names branch August 7, 2025 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants