mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-06 06:50:32 +00:00
buildStaticProviderEntry() keyed static-catalog combo entries with opts.providerId (the OC-gate-prefixed id, e.g. "opencode-omniroute") instead of opts.omnirouteProviderId (the bare server-facing id, "omniroute") that the dynamic provider.models() hook already uses per #6859. OC dispatches the static models-map key verbatim as the `model` field of the outbound request, so a bare-slug combo key doubled up to "opencode-omniroute/opencode-omniroute/<slug>" and OmniRoute's parseModel() resolved credentials for the nonexistent provider "opencode-omniroute" instead of "omniroute". Regular models were unaffected because their raw ids already contain a slash, skipping the prefixing branch entirely. Swap the buildComboKey() call to use opts.omnirouteProviderId, mirroring the dynamic hook. Adds a permanent regression test to provider-id-routing.test.ts and aligns the pre-existing hardcoded "opencode-omniroute/<combo-slug>" assertions in config-shim.test.ts that had codified the buggy prefix. Co-authored-by: Fábio Silva <13762289+fabioluissilva@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| auth.test.ts | ||
| auto-combo-context.test.ts | ||
| combos.test.ts | ||
| config-shim.test.ts | ||
| disk-snapshot-perms.test.ts | ||
| features.test.ts | ||
| fetch-interceptor.test.ts | ||
| fork-features.test.ts | ||
| gemini-sanitize.test.ts | ||
| management-read-token.test.ts | ||
| multi-instance.test.ts | ||
| options-schema.test.ts | ||
| provider-id-routing.test.ts | ||
| provider.test.ts | ||
| scaffold.test.ts | ||
| usable-combo.test.ts | ||