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
The Azure OpenAI provider probe (fetch_via_api) fails permanently on reasoning models such as gpt-5.4-mini because the validation request allots only 1 output token. Reasoning models cannot produce a visible message within that budget, so Azure returns HTTP 400 and the provider card stays red ("Usage unavailable") on every refresh.
Environment
Win-CodexBar 0.56.8 (winget, Finesssee.Win-CodexBar), Windows 11 x64
Same logic confirmed on main (rust/src/providers/azureopenai.rs)
Auth, endpoint, and deployment all validate — the request reaches the model. Azure then returns:
HTTP 400
{ "error": { "message": "Could not finish the message because max_tokens or model output limit was reached. Please try again with higher max_tokens.", "type": "invalid_request_error", "param": null, "code": null } }
Both validation_body() branches fail for this model:
legacy branch: max_tokens: 1 → rejected outright with "Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead."
There is no escape hatch on affected resources: this resource only deploys gpt-5.4-mini, so pointing the deployment at a non-reasoning model is not an option (non-reasoning candidates return DeploymentNotFound).
Proof the fix is trivial
Same request with a slightly higher budget succeeds immediately:
Raise the probe budget (e.g., max_completion_tokens: 16 / max_tokens: 16).
Treat HTTP 200 with finish_reason: length and empty content as a successful liveness probe — the provider only parses the model field from the response.
Replace the chat-completion probe with a lightweight liveness check (GET /openai/v1/models or similar) — cheaper and model-agnostic.
The provider is a liveness canary only (it reports RateWindow::new(0.0)), so any of these preserve current semantics while making reasoning-only resources usable.
Activity