转发 gpt-5.3-codex-spark 报错
returned 400: Provider returned 400: Bad Request
Thank you for reporting this issue.
Analysis:
The error message Provider returned 400: Bad Request indicates that the request for model gpt-5.3-codex-spark was successfully routed through the proxy pipeline to an upstream provider, but the upstream provider itself rejected the request with HTTP 400.
Here's how the proxy handles this:
-
The proxy does not validate or filter model names by default — it passes the model name as-is to the upstream provider (
src/app/v1/_lib/proxy/provider-selector.ts, line 157-159: if a non-Anthropic provider has noallowedModelsconfigured, it accepts any model and delegates validation to the upstream). -
The upstream provider receives the request with
model: "gpt-5.3-codex-spark", doesn't recognize it, and returns 400. -
The proxy wraps this as
Provider returned 400: Bad Request(seesrc/app/v1/_lib/proxy/errors.ts, line 67).
Likely cause:
The upstream provider you configured does not support the model gpt-5.3-codex-spark. This is not a bug in the proxy — the proxy correctly forwarded the request and relayed the provider's error response.
Suggested steps:
-
Verify that your upstream provider actually supports the model name
gpt-5.3-codex-spark. Check the provider's API documentation for the exact model identifier. -
If the upstream uses a different model name, you can configure a model redirect in the provider settings. This maps the requested model name to one the upstream recognizes. The redirect logic is in
src/app/v1/_lib/proxy/model-redirector.ts— for example, you could mapgpt-5.3-codex-sparkto the actual model name your provider expects. -
If you have multiple providers configured, make sure the provider that supports this model has it listed in its
allowedModels(or hasallowedModelsempty to accept all models). Seesrc/app/v1/_lib/proxy/provider-selector.ts, lines 114-164 for the model matching logic.
To help diagnose further, please provide:
- [ ] Which upstream provider are you using (provider type and base URL)?
- [ ] What endpoint are you sending the request to (
/v1/chat/completions,/v1/responses, etc.)? - [ ] Does the upstream provider confirm support for the model
gpt-5.3-codex-spark?
Automated response from Claude AI