mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-21 22:32:22 +03:00
open-sse/services/model.ts canonicalizes any "opencode/<model>" combo target string to provider "opencode-zen" (the api-key gateway). A round-robin combo mixing declared "opencode/<model>" targets (the free/dynamic no-auth pool) with an explicit "opencode-zen/<model>" target therefore collapsed every rotation slot onto the same provider + connection identity, so all traffic executed against the single opencode-zen connection instead of rotating across the free pool. Mirror the combo builder's existing #2901 guard at combo target resolution time (comboStructure.ts's normalizeRuntimeStep): rewrite an ambiguous "opencode/<model>" combo target to the "oc/" no-auth alias before it reaches dispatch, so it stays a distinct rotation identity. Also resolve controlCenter.ts's Resolved-Runtime-Targets label through the same alias-normalization path so the dashboard label matches what actually executes upstream.