Repository navigation
Commit 629b92f
committed
fix(gateway): treat :free suffix models as zero-cost for budget throttle
OpenRouter models with ':free' suffix (e.g. nvidia/nemotron-3-ultra-550b-a55b:free)
were falling through to unknown-model defaults ($3/M input, $15/M output), causing
the daily budget throttle to penalize free model usage. Now detected at both the
pricing layer (getPricingSync) and fallback entry layer (fallbackEntry) and assigned
$0 pricing.1 parent 04a8eb1 commit 629b92f
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
574 | 578 | | |
575 | 579 | | |
576 | 580 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
128 | 137 | | |
129 | 138 | | |
130 | 139 | | |
| |||
0 commit comments