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
[BUG] gpt-5-codex model returns 404 error when using v1/chat/completions endpoint #4480
The gpt-5-codex model should work properly with the Codex CLI without returning 404 errors. The model should respond to user queries successfully.
What do you see instead?
⚠️ stream error: unexpected status 404 Not Found: {
"error": {
"message": "This model is only supported in v1/responses and not in v1/chat/completions.",
"type": "invalid_request_error",
"param": "model",
"code": null
}
}; retrying 1/5 in 183ms…
⚠️ stream error: unexpected status 404 Not Found: {
"error": {
"message": "This model is only supported in v1/responses and not in v1/chat/completions.",
"type": "invalid_request_error",
"param": "model",
"code": null
}
}; retrying 2/5 in 380ms…
Additional information
The error message clearly indicates that the gpt-5-codex model is only supported in the v1/responses endpoint, not in v1/chat/completions. This suggests that Codex CLI is using the wrong API endpoint for this specific model.
The system automatically retries the request (up to 5 times) but continues to fail with the same 404 error. This appears to be a configuration issue where Codex CLI needs to use the correct API endpoint for the gpt-5-codex model.
Activity
BEOKS commentedon Sep 30, 2025
I fount that
wire_api = "chat"option is problem!toreluntang commentedon Feb 10, 2026
Linking this #7782 as my google search brought me here (to no avail unfortunately)