Commit 164f475
authored
feat(ai-gateway): gate Vercel routing for exclusive models with vercel-routing flag (#3005)
* feat(ai-gateway): add vercel-routing flag to gate Vercel routing for exclusive models
Kilo-exclusive models are now only eligible for random Vercel routing
when they carry the new 'vercel-routing' flag or are not exclusive at
all. This prevents surprises such as StepFun Flash (an exclusive model
on OpenRouter) suddenly being routed through Vercel if Vercel begins
hosting it. The flag is set only on the currently disabled MiniMax M2.5
free model for now.
* refactor(ai-gateway): drop redundant openrouter check and inline defaultProvider
---------
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>1 parent a320291 commit 164f475
3 files changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
| 178 | + | |
| 179 | + | |
181 | 180 | | |
182 | 181 | | |
183 | | - | |
| 182 | + | |
184 | 183 | | |
185 | 184 | | |
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
190 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments