Repository navigation
Commit eadfb9f
authored
fix(models): correct four catalogue prices and add grok-4.7 / qwen3.8-flash (#413)
Verified against each vendor's own pricing page (2026-10-16):
- openai/gpt-5.6-sol: 5.0/0.5/30.0 -> 4.0/0.4/20.0 USD/M tokens (short-context promo
price, valid at least until 2026-11-21; long context is 8.0/0.8/30.0)
- xai/grok-4.6: cache_hit_input_per_m 0.0 -> 0.5. The cached-hit price was written as 0,
so every cache hit was billed as free (a persistent undercharge)
- xai/grok-4.7 (new row): 2.0/0.5/6.0 USD, 500k context -- xAI's current flagship.
grok-4.6 stays: seed_models deletes rows absent from the config, and a listed key whose
(provider, model) has no price is rejected at the router with 503
- aliyun-bailian/qwen3.8-flash (new row): 0.8/2.7 CNY, 1M context -- Bailian's current
light tier. Its cached-hit price is NOT published: the price table only says the
context cache is discounted, and the cache-billing page states the qwen3.8 family does
not follow the usual percentage and points to the console. Recorded as 0 (free hits,
i.e. an undercharge) with a "pending" note in the config, per the request not to guess
The same numbers are mirrored in ui/js/data.js (MODELS plus the guest-market row for
gpt-5.6-sol), and catalog_gate's MODEL_COUNT positive control moves 13 -> 15.
cargo test 564/0, fmt and clippy clean. A/B: reverting MODEL_COUNT to 13 fails
extractors_are_alive, and perturbing the new grok-4.7 row fails
shared_model_fields_match_the_config.1 parent ada9043 commit eadfb9f
4 files changed
Lines changed: 46 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
341 | 344 | | |
342 | | - | |
343 | | - | |
344 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
345 | 348 | | |
346 | 349 | | |
347 | 350 | | |
| |||
368 | 371 | | |
369 | 372 | | |
370 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
371 | 377 | | |
372 | 378 | | |
373 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
374 | 393 | | |
375 | 394 | | |
376 | 395 | | |
| |||
441 | 460 | | |
442 | 461 | | |
443 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
444 | 479 | | |
445 | 480 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
| 564 | + | |
564 | 565 | | |
565 | 566 | | |
566 | 567 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
83 | | - | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
0 commit comments