mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-08-09 19:04:47 +00:00
When a bare model id matched several OpenRouter entries by tail, the first feed entry won, making the resolved price depend on feed order and risking an undercharge if a cheaper reseller happened to sort first. Pick the highest-priced candidate instead: deterministic and money-safe, since undercharging is the hazard. An exact id match still wins ahead of any tail match. Measured against the live feed there are zero bare-tail collisions today, so this only governs the latent case. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>