mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 21:02:12 +03:00
OmniRoute ships a zero-setup auto/* catalog (auto/best-coding, auto/pro- reasoning, …, 16 AUTO_TEMPLATE_VARIANTS) that the dashboard advertises and that resolve on demand via createBuiltinAutoCombo, but the /v1/models listing only emitted persisted DB combos + provider models. Clients that build their model picker from /v1/models (e.g. Hermes Agent) never saw any auto/* option. The catalog now emits every AUTO_TEMPLATE_VARIANTS id (owned_by: combo) at the top of the list, deduped against persisted combos so a user combo can't shadow or double a built-in id. TDD: tests/unit/models-catalog-auto-combos-4164.test.ts asserts every auto/* variant is advertised, they sit at the top, and ids are unique (RED 2/3 -> GREEN 3/3). Aligned the existing 'context_length for individual chat models' test to exclude owned_by:combo entries (combos/routers resolve dynamically and have no fixed context_length — they are not individual chat models).