mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-10-31 03:52:16 +08:00
A bare model id registered under multiple providers with disjoint protocol capabilities resolved to undefined, so hop 1 failed locally and the request silently fell through to the global fallback chain on a different model. ModelRegistry.resolve() now accepts the request protocol and uses it to break ties between bare-id matches; genuinely ambiguous ids (no protocol given, same protocol declared on both providers, or providers without capability metadata) keep the previous undefined behavior instead of guessing. Fixes #1860.