You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
invalid_request_error: Invalid 'messages[XX].tool_calls[0].function.name': empty string. Expected a string with minimum length 1, but got an empty string instead. #7628
CLIIssues related to the Codex CLIazureIssues related to the Azure-hosted OpenAI modelsbugSomething isn't workingtool-callsIssues related to tool calling
The assistant should respond normally to the greeting without errors. Tool call function names should be preserved from the initial SSE delta and not overwritten by empty strings in subsequent deltas.
Root Cause:
The SSE streaming parser (since v0.64.0 / PR #6996) unconditionally overwrites tool call function names with values from subsequent deltas. Azure OpenAI and other providers send the tool name in the first delta, then send empty strings in subsequent deltas containing only arguments. The current parser overwrites the valid name with these empty strings.
Environment Notes:
Issue does NOT occur with ChatGPT Pro subscription (non-Azure)
Issue started in version 0.64.0 (worked correctly in 0.63.0)
Affects Azure OpenAI and other OpenAI-compatible providers (LM Studio, etc.)
In your Azure model provider config, are you specifying wire_api = "responses", or are you using the default wire_api = "chat"? We recommend uses the "responses" API, and that should also work around this problem.
We've implemented a fix for this issue and published a new prerelease build 0.66.0-alpha.7 if you'd like to validate that it addresses the problem you are seeing.
CLIIssues related to the Codex CLIazureIssues related to the Azure-hosted OpenAI modelsbugSomething isn't workingtool-callsIssues related to tool calling
Activity
github-actions commentedon Dec 5, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
timvw commentedon Dec 5, 2025
When using chatgpt pro subscription I do not experience the issue.. So indeed, related to Azure deployment...
etraut-openai commentedon Dec 5, 2025
In your Azure model provider config, are you specifying
wire_api = "responses", or are you using the defaultwire_api = "chat"? We recommend uses the "responses" API, and that should also work around this problem.timvw commentedon Dec 5, 2025
Indeed, using the responses API also works around the issue...
For people coming after me, I need to update my codex config (base_url and query_params are different when using responses api:
etraut-openai commentedon Dec 5, 2025
We've implemented a fix for this issue and published a new prerelease build
0.66.0-alpha.7if you'd like to validate that it addresses the problem you are seeing.timvw commentedon Dec 6, 2025
I tested v0.66.0-alpha.8 and can confirm that the issue does not exist in that version.