Skip to content

fix(openai): accept Azure chat completion tool-call payloads - #2255

Open
ltoddy wants to merge 4 commits into
0xPlaygrounds:mainfrom
ltoddy:fix/openai-tool-call-empty-content
Open

fix(openai): accept Azure chat completion tool-call payloads#2255
ltoddy wants to merge 4 commits into
0xPlaygrounds:mainfrom
ltoddy:fix/openai-tool-call-empty-content

Conversation

@ltoddy

@ltoddy ltoddy commented Aug 4, 2026

Copy link
Copy Markdown

Handle Azure-compatible chat completion fields so tool-call responses with empty content still deserialize and convert cleanly.

ltoddy added 4 commits August 4, 2026 14:41
Avoid treating OpenAI-compatible tool call responses as empty when content and reasoning_content are blank.
Handle Azure-compatible chat completion fields so tool-call responses with empty content still deserialize and convert cleanly.
Avoid misclassifying successful Azure chat completion bodies as API errors and allow missing choice indexes in the latest tool-call response shape.
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.

1 participant