diegosouzapw/OmniRoute · error
MODEL_002
MODEL_002
Error message
Ambiguous model identifier
What it means
Canonical error-code entry MODEL_002 (HTTP 400, MODEL category): the requested model identifier matches more than one registered model (e.g. the same short name under multiple providers/families) and cannot be resolved unambiguously. The client must send a fully qualified model id.
Solutions
- Use the fully qualified provider/model identifier
- Disable one of the colliding model registrations
- Alias the short name to the intended provider
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/shared/constants/errorCodes.ts:95 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/84c755b1cc6e5503.
Report an issue: GitHub.
Appendix: source
Thrown at src/shared/constants/errorCodes.ts:95
category: "RATE_LIMIT",
},
RATE_002: {
code: "RATE_002",
message: "Daily budget exceeded",
httpStatus: 429,
category: "RATE_LIMIT",
},
RATE_003: {
code: "RATE_003",
message: "All accounts rate-limited",
httpStatus: 503,
category: "RATE_LIMIT",
},
// ── Model / Routing ──
MODEL_001: { code: "MODEL_001", message: "Model not found", httpStatus: 404, category: "MODEL" },
MODEL_002: {
code: "MODEL_002",
message: "Ambiguous model identifier",
httpStatus: 400,
category: "MODEL",
},
MODEL_003: {
code: "MODEL_003",
message: "Model temporarily unavailable",
httpStatus: 503,
category: "MODEL",
},
// ── Provider ──
PROVIDER_001: {
code: "PROVIDER_001",
message: "Provider error",
httpStatus: 502,
category: "PROVIDER",
},View on GitHub (pinned to a179ffed5b)