mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-02 05:12:11 +03:00
Inner.ai's live model list is plan-gated, and findModel() fell back to models[0] (the first live model, typically gpt-4o) whenever the requested model did not match by exact/case-insensitive/substring. That silently rerouted every model not exposed by the plan to gpt-4o, so users reported that only gpt-4o ever responded. findModel() now returns null on no match; the single caller already builds a synthetic entry carrying the actually-requested model name, so the request is sent for the model the user asked for and Inner.ai can surface a clear error if the plan does not expose it. TDD: tests/unit/inner-ai-find-model.test.ts (no-match -> null red->green; exact / case-insensitive / substring / empty-list regression guards).