Commit a324a9d
committed
fix: override Kimi-K2 context window to 131K to match OpenRouter advertised specs
- OpenRouter API returns 63K for moonshotai/kimi-k2 but their website shows 131K
- Added manual override in parseOpenRouterModel to set correct context window
- Added test to verify the override works correctly
Fixes #67591 parent 2b647ed commit a324a9d
File tree
2 files changed
+31
-0
lines changed- src/api/providers/fetchers
- __tests__
2 files changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
335 | 360 | | |
336 | 361 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
250 | 256 | | |
251 | 257 | | |
0 commit comments