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
Cannot progress past first chat: Missing required parameter: 'input[2].id' #3451
>_ You are using OpenAI Codex in /ap/bin
To get started, describe a task or try one of these commands:
/init - create an AGENTS.md file with instructions for Codex
/status - show current session configuration and token usage
/approvals - choose what Codex can do without approval
/model - choose what model and reasoning effort to use
▌hi
> Hey! How can I help today?
▌hi
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "Missing required parameter: 'input[2].id'.",
"type": "invalid_request_error",
"param": "input[2].id",
"code": "missing_required_parameter"
}
}; retrying 1/5 in 200ms…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "Missing required parameter: 'input[2].id'.",
"type": "invalid_request_error",
"param": "input[2].id",
"code": "missing_required_parameter"
}
}; retrying 2/5 in 431ms…
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "Item with id 'rs_68c2f345755c819697feb282e2fedf9509f1adb864821dc1' not found. Items are not persisted when `store` is
set to false. Try again with `store` set to true, or remove this item from your input.",
"type": "invalid_request_error",
"param": "input",
"code": null
}
which I know that @pakrym-oai patched in the later versions but I can't use anything further than .29 with my setup.
Azure api integration really need to be documented and tested every release
Reacted by tseward00, Cezary Klus and Krishna Kumar
my setting is like:
env_key = "AZURE_OPENAI_API_KEY"
query_params = { api-version = "2025-04-01-preview" }
and the result is:
unexpected status 400 Bad Request: {"error":
{"code":"BadRequest","message":"API version not supported"}}
That's a different error than what we're chatting about. You might want to search for another related issue or at least post all the important bits from config.
We had to apply some workaround for Azure API issues. We detect azure by looking at the host name ("openai.azure.",
"cognitiveservices.azure.","aoai.azure.","azure-api.", "azurefd.") or the config name (looking for model provider named azure).
model = "<YOUR-DEPLOYMENT-NAME>"
model_provider = "<YOUR-PROVIDER-NAME>"
profile = "<YOUR-PROFILE-NAME>"
[model_providers."<YOUR-PROVIDER-NAME>"]
name = "Azure"
base_url = "https://<YOUR-RESOURCE-NAME>.openai.azure.com/openai/v1/"
env_key = "AZURE_OPENAI_API_KEY"
wire_api = "responses" # Changed from "chat", works as of v1 api GA, recommended by openAI ?
request_max_retries = 4
stream_max_retries = 10
stream_idle_timeout_ms = 300000
[profiles."<YOUR-PROFILE-NAME>"]
model = "<YOUR-DEPLOYMENT-NAME>"
model_provider = "<YOUR-PROVIDER-NAME>"
While this works for me, and resolves the need to specify API Versions, it started breaking again with
⚠️ stream error: unexpected status 400 Bad Request: {
"error": {
"message": "Missing required parameter: 'input[3].id'.",
"type": "invalid_request_error",
"param": "input[3].id",
"code": "missing_required_parameter"
}
}; retrying 2/10 in 418ms…
don't pick from /models though else it gives ⚠️ stream error: unexpected status 404 Not Found: {"error":{"code":"DeploymentNotFound"...}} errors. [This is it's own set of unresolved errors and config jank]
We had to apply some workaround for Azure API issues. We detect azure by looking at the host name ("openai.azure.",
"cognitiveservices.azure.","aoai.azure.","azure-api.", "azurefd.") or the config name (looking for model provider named azure).
@pakrym-oai My firm proxies Azure for various reasons so a domain approach cannot work.
The name approach works but is very peculiar because name doesn't look like a functional field, it looks like it's offered to help maintain your config file.
Because it's an exact match I can't even set the name to "Azure via internal proxy" or something.
Isn't the best way to handle this to create a wire_api for Azure?
Isn't the best way to handle this to create a wire_api for Azure?
It is an option but we are trying to avoid proliferating wire formats especially for something that is a bug in Azure API implementation and has to be fixed soon.
This workaround does not solve cases where the connection to Azure is routed via a Proxy (Ie. LiteLLM). @pakrym-oai , please reopen the issue
As suggested above, having something like wire_api = "azure-responses" would be a more robust workaround
@emerzon I think it should be possible to get it working in your situation. The code checks if name is azureOR if the URL contains some substrings, which looks flexible enough (i.e. just add your LiteLLM configuration under a [model_providers.azure] section in config.toml).
This indeed is an issue that extends to litellm. I'm working on a suggestion of a config option to force this behaviour of sending reasoning ids aka store: true. I'll link to this issue soon. Thanks for the discussion on this issue, even that's closed status, it helped a lot to troubleshoot this.
Activity
Chetansuri7 commentedon Sep 11, 2025
facing same issue. had to downgrade to npm install -g @openai/[email protected] to make it work.
daklik commentedon Sep 11, 2025
Same issue here - had to revert also to 0.31.0.
Azure OpenAI, GPT-5-mini, api version 2025-04-01-preview, sandbox danger-full-access.
doggy8088 commentedon Sep 11, 2025
Same issue here. I tried 0.32.0, 0.33.0, 0.34.0 which are all failed. Only 0.31.0 works. Please fix it.
bro4all commentedon Sep 11, 2025
funny that on .31 I have this error:
which I know that @pakrym-oai patched in the later versions but I can't use anything further than .29 with my setup.
Azure api integration really need to be documented and tested every release
rxreyn3 commentedon Sep 11, 2025
This guy appears to be the cause. #3390
john-lu-ptc commentedon Sep 11, 2025
Same issue!
intherejeet commentedon Sep 11, 2025
same issue
Einorde commentedon Sep 12, 2025
same issue, and can't downgrade with homebrew using
brew install [email protected]DevOps-zhuang commentedon Sep 12, 2025
It still doesn't work even downgrade to 0.31 :-(
my setting is like:
env_key = "AZURE_OPENAI_API_KEY"
query_params = { api-version = "2025-04-01-preview" }
and the result is:
unexpected status 400 Bad Request: {"error":
{"code":"BadRequest","message":"API version not supported"}}
rxreyn3 commentedon Sep 12, 2025
That's a different error than what we're chatting about. You might want to search for another related issue or at least post all the important bits from config.
supernitin commentedon Sep 12, 2025
Azure is the red headed step child around here :(
lperezeverfield commentedon Sep 12, 2025
same issue
5 remaining items
CezaryKlus commentedon Sep 15, 2025
@pakrym-oai same error
\"Missing required parameter: 'input[2].id'.\"pakrym-oai commentedon Sep 15, 2025
We had to apply some workaround for Azure API issues. We detect azure by looking at the host name ("openai.azure.",
"cognitiveservices.azure.","aoai.azure.","azure-api.", "azurefd.") or the config name (looking for model provider named
azure).Does this match your config?
rxreyn3 commentedon Sep 15, 2025
@pakrym-oai I reverted #3390 and build locally to get around this myself.
ksquarekumar commentedon Sep 15, 2025
Can confirm 0.36.0 also has this issue
While this works for me, and resolves the need to specify API Versions, it started breaking again with
don't pick from
/modelsthough else it gives⚠️ stream error: unexpected status 404 Not Found: {"error":{"code":"DeploymentNotFound"...}}errors. [This is it's own set of unresolved errors and config jank]Azure support is really chaotic.
Jer-y commentedon Sep 15, 2025
0.36.0 works for me. Below are my toml
lordmauve commentedon Sep 16, 2025
@pakrym-oai My firm proxies Azure for various reasons so a domain approach cannot work.
The name approach works but is very peculiar because
namedoesn't look like a functional field, it looks like it's offered to help maintain your config file.Because it's an exact match I can't even set the name to "Azure via internal proxy" or something.
Isn't the best way to handle this to create a
wire_apifor Azure?pakrym-oai commentedon Sep 16, 2025
It is an option but we are trying to avoid proliferating wire formats especially for something that is a bug in Azure API implementation and has to be fixed soon.
doggy8088 commentedon Sep 16, 2025
I believe 0.36.0 fixed the issue. Just run the following command to install latest version of Codex CLI:
pakrym-oai commentedon Sep 16, 2025
I'm going to close the issue. Please install Codex CLI 0.36 and use the exact definition from https://github.com/openai/openai/pull/474542 (we're matching
azureprovider by name and on Azure host names to apply a workaround for a bug in Azure implementation of Responses API).tkellogg commentedon Sep 16, 2025
This works for me. Thanks!
emerzon commentedon Sep 17, 2025
This workaround does not solve cases where the connection to Azure is routed via a Proxy (Ie. LiteLLM).
@pakrym-oai , please reopen the issue
As suggested above, having something like
wire_api = "azure-responses"would be a more robust workaroundrxreyn3 commentedon Sep 17, 2025
Is anyone else seeing this on .36 only when resuming sessions? I'm wondering if I should create another issue.
understood-the-assignment commentedon Sep 19, 2025
@pakrym-oai That link is broken, I am guessing that you mean #3542.
Here is the code:
codex/codex-rs/core/src/model_provider_info.rs
Lines 165 to 178 in 9b18875
@emerzon I think it should be possible to get it working in your situation. The code checks if name is
azureOR if the URL contains some substrings, which looks flexible enough (i.e. just add your LiteLLM configuration under a[model_providers.azure]section inconfig.toml).paulopacitti commentedon Oct 15, 2025
This indeed is an issue that extends to litellm. I'm working on a suggestion of a config option to force this behaviour of sending reasoning ids aka
store: true. I'll link to this issue soon. Thanks for the discussion on this issue, even that's closed status, it helped a lot to troubleshoot this.cc: @FelipeRodriguesGare