@blockrun/llm 4.4.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +434 -272
- package/dist/index.js +434 -272
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -784,7 +784,7 @@ function buildDecisionsBody(request) {
|
|
|
784
784
|
// src/client.ts
|
|
785
785
|
var import_accounts2 = require("viem/accounts");
|
|
786
786
|
|
|
787
|
-
// node_modules/.pnpm/@blockrun+router-core@https+++codeload.github.com+BlockRunAI+router-core+tar.gz+
|
|
787
|
+
// node_modules/.pnpm/@blockrun+router-core@https+++codeload.github.com+BlockRunAI+router-core+tar.gz+53fe78353e1b3_omdfyyg7rrspxbl65mdwmbpkkm/node_modules/@blockrun/router-core/dist/index.js
|
|
788
788
|
var UNSEGMENTED_SCRIPT = /[-ۿ -ヿ㐀-䶿一-鿿가-豈--]/;
|
|
789
789
|
var WORD_CHAR = /[\p{L}\p{N}]/u;
|
|
790
790
|
var ASCII_PHRASE = /^[a-z0-9' -]+$/;
|
|
@@ -1353,7 +1353,12 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1353
1353
|
affinityFloorGap: { auto: 0.1, eco: 0.22, premium: 0.05 }
|
|
1354
1354
|
},
|
|
1355
1355
|
classifier: {
|
|
1356
|
-
|
|
1356
|
+
// gemini-2.5-flash until Google retired it on 2026-12-01 (the gateways
|
|
1357
|
+
// redirect it to 3.5 Flash-Lite). Nothing in this package or ClawRouter
|
|
1358
|
+
// reads llmModel today. Before wiring it, note that 3.5 Flash-Lite always
|
|
1359
|
+
// thinks (it rejects a thinking budget of 0), so llmMaxTokens 10 may be
|
|
1360
|
+
// spent on reasoning before any label is emitted.
|
|
1361
|
+
llmModel: "google/gemini-3.5-flash-lite",
|
|
1357
1362
|
llmMaxTokens: 10,
|
|
1358
1363
|
llmTemperature: 0,
|
|
1359
1364
|
promptTruncationChars: 500,
|
|
@@ -2394,24 +2399,84 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2394
2399
|
//
|
|
2395
2400
|
// Latency figures in comments are the 2026-08-29 gateway probe
|
|
2396
2401
|
// (model-profiles.generated.json); prices are the catalog list.
|
|
2402
|
+
//
|
|
2403
|
+
// Retirements 2026-11-24 (owner-approved; the gateways redirect each id
|
|
2404
|
+
// before pricing, so a stale name here is a silent model swap, not an error):
|
|
2405
|
+
// - google/gemini-3.5-flash -> google/gemini-3.6-flash. Google has served
|
|
2406
|
+
// 3.6 Flash under the 3.5 name since ~2026-10-10. Each 3.5 rung now names
|
|
2407
|
+
// 3.6 at the same position; where 3.6 already sat in the same chain, the
|
|
2408
|
+
// later of the two is dropped, so the order of the models actually served
|
|
2409
|
+
// is unchanged. 3.6 inherits 3.5's affinity values, carried, not measured
|
|
2410
|
+
// (portfolio.ts).
|
|
2411
|
+
// - openai/o4-mini (and o1, o3-mini) -> openai/gpt-5.4-mini, at the same
|
|
2412
|
+
// position. Dead at OpenAI since 2026-10-23 and on Azure since 2026-11-19.
|
|
2413
|
+
//
|
|
2414
|
+
// Retirements 2026-12-01 (Google retires Gemini 2.5; the gateways redirect):
|
|
2415
|
+
// - google/gemini-2.5-flash -> google/gemini-3.5-flash-lite (same
|
|
2416
|
+
// $0.30/$2.50), in place, with the same dedupe rule. 3.5 Flash-Lite has
|
|
2417
|
+
// no vision tag where 2.5 Flash had one, so a SIMPLE vision turn now
|
|
2418
|
+
// falls past it to the next vision-capable rung instead of reaching a
|
|
2419
|
+
// redirected model that would drop the image.
|
|
2420
|
+
// - google/gemini-2.5-pro -> google/gemini-3.8-flash ($0.75/$3.75), in
|
|
2421
|
+
// place.
|
|
2422
|
+
//
|
|
2423
|
+
// Retirements 2026-12-11 (OpenAI shuts down o3, gpt-5-mini and gpt-5-nano —
|
|
2424
|
+
// developers.openai.com/api/docs/deprecations, notice 2026-06-11; the
|
|
2425
|
+
// gateways redirect each and quote the successor):
|
|
2426
|
+
// - openai/o3 -> openai/gpt-5.4-mini ($2/$8 -> $0.75/$4.50). Both o3 rungs
|
|
2427
|
+
// (auto and premium REASONING) sat directly behind gpt-5.4-mini, so they
|
|
2428
|
+
// are dropped by the dedupe rule; the order actually served is unchanged.
|
|
2429
|
+
// - openai/gpt-5-mini -> openai/gpt-5.6-luna ($0.25/$2 -> $0.20/$1.20), in
|
|
2430
|
+
// place as the agentic MEDIUM primary. Luna inherits gpt-5-mini's
|
|
2431
|
+
// affinity values, CARRIED, not measured (portfolio.ts) — gpt-5-mini is a
|
|
2432
|
+
// reasoning model and luna runs without reasoning, so those values are a
|
|
2433
|
+
// placeholder until a Terminal-Bench/tau2 run on luna.
|
|
2434
|
+
// - openai/gpt-5-nano is NOT redirected (owner decision 2026-11-24): the
|
|
2435
|
+
// gateways keep serving it from Azure at its own $0.05/$0.40 until
|
|
2436
|
+
// 2027-02-09. It is hidden and in no chain, and none is added.
|
|
2437
|
+
//
|
|
2438
|
+
// Generation refresh 2026-11-27 (owner-approved). Nothing below is retired
|
|
2439
|
+
// at the gateway — every id it replaces still answers on both chains. The
|
|
2440
|
+
// rule: a fallback rung, or a primary with no calibration behind it, moves
|
|
2441
|
+
// to the same family's newer model when that model costs the same or less
|
|
2442
|
+
// and is tool-verified. Primaries carrying measured trajectory evidence
|
|
2443
|
+
// (Sonnet 5, GPT-4o Mini, Gemini 3.1 Pro's long-context lead) stay until a
|
|
2444
|
+
// calibration run says otherwise, and so do the measured values in
|
|
2445
|
+
// portfolio.ts (BFCL parallel, GPQA, MGSM, BrowseComp, tau2, Terminal-Bench)
|
|
2446
|
+
// and the evidence pools that reach them.
|
|
2447
|
+
// - claude-opus-5 / -4.8 / -4.7 ($5/$25) -> claude-opus-5.5 ($4/$20), with
|
|
2448
|
+
// opus-5 kept directly behind it as the in-family hot swap; 4.8 and 4.7
|
|
2449
|
+
// leave the chains.
|
|
2450
|
+
// - claude-sonnet-4.6 ($3/$15) -> claude-sonnet-5.5 ($2/$10), in place.
|
|
2451
|
+
// - grok-4.5 -> grok-4.7 (both $2/$6), in place.
|
|
2452
|
+
// - gpt-5.4-nano ($0.20/$1.25) -> gpt-6-luna ($0.10/$0.50), in place.
|
|
2453
|
+
// - gpt-5.5 ($5/$30) and gpt-5.4 ($2.50/$15), adjacent in three COMPLEX
|
|
2454
|
+
// chains -> one gpt-6.2-sol rung ($2/$10; tool call, 3/3 completions,
|
|
2455
|
+
// 6.3s mean on the 2026-11-27 probe). gpt-5.6-terra stays where it is.
|
|
2456
|
+
// - premiumTiers.COMPLEX primary: claude-fable-5 ($10/$50) ->
|
|
2457
|
+
// claude-opus-5.5 ($4/$20), owner decision. Fable 5.2 ($8/$40) is served
|
|
2458
|
+
// on Base only (Solana answers 503 and does not list it), so it is in no
|
|
2459
|
+
// chain; Fable 5 leaves the chains.
|
|
2397
2460
|
// Auto (balanced) tier configs - current default smart routing
|
|
2398
2461
|
tiers: {
|
|
2399
2462
|
SIMPLE: {
|
|
2400
|
-
|
|
2401
|
-
//
|
|
2463
|
+
// Was google/gemini-2.5-flash (60% retention, best, in the 2026-03 run)
|
|
2464
|
+
// until its 2026-12-01 retirement. 3.5 Flash-Lite is what the gateways
|
|
2465
|
+
// serve under that name from then on; it was this chain's second
|
|
2466
|
+
// fallback and is dropped there.
|
|
2467
|
+
primary: "google/gemini-3.5-flash-lite",
|
|
2468
|
+
// $0.30/$2.50, 1M ctx, thinking mode, no vision
|
|
2402
2469
|
fallback: [
|
|
2403
2470
|
"google/gemini-3-flash-preview",
|
|
2404
2471
|
// $0.50/$3 — GPQA 5/6 in the 2026-07 calibration
|
|
2405
|
-
"google/gemini-3.5-flash-lite",
|
|
2406
|
-
// $0.30/$2.50, 1M ctx, thinking mode — same price as 2.5 Flash, newer generation
|
|
2407
2472
|
"deepseek/deepseek-chat",
|
|
2408
2473
|
// $0.14/$0.28, 1M ctx
|
|
2409
2474
|
"google/gemini-3.1-flash-lite",
|
|
2410
2475
|
// $0.25/$1.50, 1M ctx
|
|
2411
2476
|
"openai/gpt-5.6-luna",
|
|
2412
2477
|
// $0.20/$1.20, 1M ctx — GPT-5.6 cost tier (cut 2026-07-30)
|
|
2413
|
-
"openai/gpt-
|
|
2414
|
-
// $0.
|
|
2478
|
+
"openai/gpt-6-luna",
|
|
2479
|
+
// $0.10/$0.50, 1M ctx, vision + tools — gpt-5.4-nano's successor (2026-11-27)
|
|
2415
2480
|
"google/gemini-2.5-flash-lite",
|
|
2416
2481
|
// $0.10/$0.40
|
|
2417
2482
|
"nvidia/nemotron-3.5-lightning"
|
|
@@ -2419,13 +2484,13 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2419
2484
|
]
|
|
2420
2485
|
},
|
|
2421
2486
|
MEDIUM: {
|
|
2422
|
-
// Was moonshot/kimi-k2.7 (hidden 2026-08)
|
|
2423
|
-
// calibrated successor
|
|
2424
|
-
|
|
2425
|
-
//
|
|
2487
|
+
// Was moonshot/kimi-k2.7 (hidden 2026-08), then Gemini 3.5 Flash — the
|
|
2488
|
+
// calibrated successor (MGSM 5/5, GPQA 4/6, extraction band) — until its
|
|
2489
|
+
// 2026-11-24 retirement. 3.6 Flash is what Google served under that name
|
|
2490
|
+
// since ~10-10; it was this chain's first fallback and is dropped there.
|
|
2491
|
+
primary: "google/gemini-3.6-flash",
|
|
2492
|
+
// $0.75/$3.75, 1M ctx, vision + tools — 3.5's affinity, carried
|
|
2426
2493
|
fallback: [
|
|
2427
|
-
"google/gemini-3.6-flash",
|
|
2428
|
-
// $1.50/$7.50 — newest Flash, output 17% cheaper than 3.5; awaiting calibration
|
|
2429
2494
|
"zai/glm-5.3-flash",
|
|
2430
2495
|
// $0.15/$0.50, 1M ctx, vision + tools verified live 2026-08-27
|
|
2431
2496
|
"openai/gpt-5.6-terra",
|
|
@@ -2434,8 +2499,8 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2434
2499
|
// $0.50/$3
|
|
2435
2500
|
"deepseek/deepseek-chat",
|
|
2436
2501
|
// $0.14/$0.28
|
|
2437
|
-
"google/gemini-
|
|
2438
|
-
// $0.30/$2.50
|
|
2502
|
+
"google/gemini-3.5-flash-lite",
|
|
2503
|
+
// $0.30/$2.50 — 2.5 Flash's successor (retired 2026-12-01)
|
|
2439
2504
|
"minimax/minimax-m3",
|
|
2440
2505
|
// $0.30/$1.20, 1M ctx
|
|
2441
2506
|
"google/gemini-3.1-flash-lite",
|
|
@@ -2451,33 +2516,29 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2451
2516
|
// $2/$12 — proven long-context flagship (portfolio.ts long_context lead)
|
|
2452
2517
|
fallback: [
|
|
2453
2518
|
"google/gemini-3.6-flash",
|
|
2454
|
-
// $
|
|
2455
|
-
"google/gemini-3.5-flash",
|
|
2456
|
-
// $1.50/$9 — calibrated
|
|
2519
|
+
// $0.75/$3.75 — Pro-level quality at Flash price (Google's claim); also 3.5 Flash's successor (3.5 retired 2026-11-24 and was the next rung)
|
|
2457
2520
|
"anthropic/claude-sonnet-5",
|
|
2458
|
-
// $
|
|
2459
|
-
"xai/grok-4.
|
|
2460
|
-
// $2
|
|
2461
|
-
"google/gemini-
|
|
2462
|
-
// $
|
|
2463
|
-
"anthropic/claude-sonnet-
|
|
2464
|
-
// $
|
|
2521
|
+
// $2/$10 — near-Opus quality, tau2 + Terminal-Bench calibrated
|
|
2522
|
+
"xai/grok-4.7",
|
|
2523
|
+
// $2/$6 — 503-resistant, independent infra (grok-4.5's successor, 2026-11-27)
|
|
2524
|
+
"google/gemini-3.8-flash",
|
|
2525
|
+
// $0.75/$3.75 — 2.5 Pro's successor (retired 2026-12-01)
|
|
2526
|
+
"anthropic/claude-sonnet-5.5",
|
|
2527
|
+
// $2/$10 — sonnet-4.6's successor (2026-11-27)
|
|
2465
2528
|
"openai/gpt-5.6-terra",
|
|
2466
2529
|
// $2/$12 — GPT-5.6 balanced tier (Sol excluded: #202)
|
|
2467
|
-
"openai/gpt-
|
|
2468
|
-
// $5/$30
|
|
2469
|
-
"openai/gpt-5.4",
|
|
2470
|
-
// $2.50/$15 — previous flagship, benchmarked
|
|
2530
|
+
"openai/gpt-6.2-sol",
|
|
2531
|
+
// $2/$10, vision + tools (probed 2026-11-27) — replaces gpt-5.5 ($5/$30) and gpt-5.4 ($2.50/$15)
|
|
2471
2532
|
"zai/glm-5.3",
|
|
2472
2533
|
// $1.40/$4.40, 1M ctx, always-on thinking — verified live 2026-08-19
|
|
2473
|
-
"moonshot/kimi-k3",
|
|
2474
|
-
// $
|
|
2534
|
+
"moonshot/kimi-k3.1-pro",
|
|
2535
|
+
// $2/$10, 1M ctx — Moonshot flagship (K3 successor)
|
|
2475
2536
|
"deepseek/deepseek-v4-pro",
|
|
2476
|
-
// $
|
|
2537
|
+
// $1.32/$3.96 — strongest open-weight reasoner
|
|
2477
2538
|
"deepseek/deepseek-chat",
|
|
2478
2539
|
// $0.14/$0.28 — cheap last resort
|
|
2479
|
-
"google/gemini-
|
|
2480
|
-
// $0.30/$2.50
|
|
2540
|
+
"google/gemini-3.5-flash-lite"
|
|
2541
|
+
// $0.30/$2.50 — 2.5 Flash's successor (retired 2026-12-01)
|
|
2481
2542
|
]
|
|
2482
2543
|
},
|
|
2483
2544
|
REASONING: {
|
|
@@ -2487,17 +2548,15 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2487
2548
|
// $0.14/$0.28, 1M ctx
|
|
2488
2549
|
fallback: [
|
|
2489
2550
|
"deepseek/deepseek-v4-pro",
|
|
2490
|
-
// $
|
|
2551
|
+
// $1.32/$3.96 — calibrated reasoning band 0.95
|
|
2491
2552
|
"xai/grok-4.3",
|
|
2492
|
-
// $1.50
|
|
2553
|
+
// $1.25/$2.50, 1M ctx — xAI reasoning model, vision
|
|
2493
2554
|
"qwen/qwen3.7-plus",
|
|
2494
2555
|
// $0.32/$1.28, 1M ctx — reasoning; needs a generous max_tokens (thinking is billed)
|
|
2495
|
-
"google/gemini-3.
|
|
2496
|
-
// $
|
|
2497
|
-
"openai/
|
|
2498
|
-
// $
|
|
2499
|
-
"openai/o3"
|
|
2500
|
-
// $2/$8
|
|
2556
|
+
"google/gemini-3.6-flash",
|
|
2557
|
+
// $0.75/$3.75 — 3.5 Flash's successor (MGSM 5/5 on 3.5, carried)
|
|
2558
|
+
"openai/gpt-5.4-mini"
|
|
2559
|
+
// $0.75/$4.50 — o4-mini's and o3's successor (retired 2026-11-24 and 2026-12-11; o3 was the next rung)
|
|
2501
2560
|
]
|
|
2502
2561
|
}
|
|
2503
2562
|
},
|
|
@@ -2528,8 +2587,8 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2528
2587
|
// $0.15/$0.50, 1M ctx, vision + tools
|
|
2529
2588
|
"openai/gpt-5.6-luna",
|
|
2530
2589
|
// $0.20/$1.20, 1M ctx
|
|
2531
|
-
"openai/gpt-
|
|
2532
|
-
// $0.
|
|
2590
|
+
"openai/gpt-6-luna",
|
|
2591
|
+
// $0.10/$0.50 — gpt-5.4-nano's successor (2026-11-27)
|
|
2533
2592
|
"google/gemini-3.1-flash-lite"
|
|
2534
2593
|
// $0.25/$1.50
|
|
2535
2594
|
]
|
|
@@ -2544,12 +2603,12 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2544
2603
|
// $0.25/$1.50
|
|
2545
2604
|
"openai/gpt-5.6-luna",
|
|
2546
2605
|
// $0.20/$1.20
|
|
2547
|
-
"openai/gpt-
|
|
2548
|
-
// $0.
|
|
2606
|
+
"openai/gpt-6-luna",
|
|
2607
|
+
// $0.10/$0.50 — gpt-5.4-nano's successor (2026-11-27)
|
|
2549
2608
|
"google/gemini-2.5-flash-lite",
|
|
2550
2609
|
// $0.10/$0.40
|
|
2551
|
-
"google/gemini-
|
|
2552
|
-
// $0.30/$2.50
|
|
2610
|
+
"google/gemini-3.5-flash-lite"
|
|
2611
|
+
// $0.30/$2.50 — 2.5 Flash's successor (retired 2026-12-01)
|
|
2553
2612
|
]
|
|
2554
2613
|
},
|
|
2555
2614
|
COMPLEX: {
|
|
@@ -2561,11 +2620,11 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2561
2620
|
"minimax/minimax-m3",
|
|
2562
2621
|
// $0.30/$1.20, 1M ctx
|
|
2563
2622
|
"deepseek/deepseek-v4-pro",
|
|
2564
|
-
// $
|
|
2623
|
+
// $1.32/$3.96
|
|
2565
2624
|
"google/gemini-3.1-flash-lite",
|
|
2566
2625
|
// $0.25/$1.50
|
|
2567
|
-
"google/gemini-
|
|
2568
|
-
// $0.30/$2.50
|
|
2626
|
+
"google/gemini-3.5-flash-lite"
|
|
2627
|
+
// $0.30/$2.50 — 2.5 Flash's successor (retired 2026-12-01)
|
|
2569
2628
|
]
|
|
2570
2629
|
},
|
|
2571
2630
|
REASONING: {
|
|
@@ -2573,7 +2632,7 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2573
2632
|
// $0.14/$0.28, 1M ctx — cheapest listed reasoner
|
|
2574
2633
|
fallback: [
|
|
2575
2634
|
"deepseek/deepseek-v4-pro",
|
|
2576
|
-
// $
|
|
2635
|
+
// $1.32/$3.96
|
|
2577
2636
|
"qwen/qwen3.7-plus",
|
|
2578
2637
|
// $0.32/$1.28 — reasoning
|
|
2579
2638
|
"minimax/minimax-m3",
|
|
@@ -2584,23 +2643,21 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2584
2643
|
}
|
|
2585
2644
|
},
|
|
2586
2645
|
// Premium tier configs - best quality (blockrun/premium)
|
|
2587
|
-
// codex=complex coding, flash=simple coding, sonnet=reasoning/instructions,
|
|
2646
|
+
// codex=complex coding, flash=simple coding, sonnet=reasoning/instructions, opus=architecture/PM/audits
|
|
2588
2647
|
premiumTiers: {
|
|
2589
2648
|
SIMPLE: {
|
|
2590
|
-
// Was moonshot/kimi-k2.7 (hidden 2026-08).
|
|
2591
|
-
|
|
2592
|
-
//
|
|
2649
|
+
// Was moonshot/kimi-k2.7 (hidden 2026-08), then Gemini 3.5 Flash until
|
|
2650
|
+
// its 2026-11-24 retirement; 3.6 Flash was the first fallback and is
|
|
2651
|
+
// dropped there.
|
|
2652
|
+
primary: "google/gemini-3.6-flash",
|
|
2653
|
+
// $0.75/$3.75, 1M ctx, vision + tools — 3.5's affinity, carried
|
|
2593
2654
|
fallback: [
|
|
2594
|
-
"google/gemini-3.6-flash",
|
|
2595
|
-
// $1.50/$7.50 — newest Flash
|
|
2596
2655
|
"anthropic/claude-haiku-4.5",
|
|
2597
2656
|
// $1/$5
|
|
2598
2657
|
"zai/glm-5.3",
|
|
2599
2658
|
// $1.40/$4.40, 1M ctx
|
|
2600
|
-
"google/gemini-2.5-flash",
|
|
2601
|
-
// $0.30/$2.50
|
|
2602
2659
|
"google/gemini-3.5-flash-lite",
|
|
2603
|
-
// $0.30/$2.50
|
|
2660
|
+
// $0.30/$2.50 — written where 2.5 Flash sat (retired 2026-12-01); the duplicate after it is dropped
|
|
2604
2661
|
"deepseek/deepseek-chat"
|
|
2605
2662
|
// $0.14/$0.28
|
|
2606
2663
|
]
|
|
@@ -2610,54 +2667,49 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2610
2667
|
// $1.75/$14 - 400K context, 128K output — code_edit/debug lead (portfolio.ts)
|
|
2611
2668
|
fallback: [
|
|
2612
2669
|
"anthropic/claude-sonnet-5",
|
|
2613
|
-
// $
|
|
2614
|
-
"moonshot/kimi-k3",
|
|
2615
|
-
// $
|
|
2670
|
+
// $2/$10 — code_agent band 0.98
|
|
2671
|
+
"moonshot/kimi-k3.1-pro",
|
|
2672
|
+
// $2/$10, 1M ctx — Moonshot flagship
|
|
2616
2673
|
"zai/glm-5.3",
|
|
2617
2674
|
// $1.40/$4.40 — long-horizon coding
|
|
2618
2675
|
"google/gemini-3.6-flash",
|
|
2619
|
-
// $
|
|
2620
|
-
"google/gemini-3.
|
|
2621
|
-
// $
|
|
2622
|
-
"
|
|
2623
|
-
// $
|
|
2624
|
-
"
|
|
2625
|
-
// $2.
|
|
2626
|
-
"anthropic/claude-sonnet-4.6",
|
|
2627
|
-
// $3/$15
|
|
2676
|
+
// $0.75/$3.75 (3.5 Flash, the next rung, retired 2026-11-24)
|
|
2677
|
+
"google/gemini-3.8-flash",
|
|
2678
|
+
// $0.75/$3.75 — 2.5 Pro's successor (retired 2026-12-01)
|
|
2679
|
+
"xai/grok-4.7",
|
|
2680
|
+
// $2/$6 — grok-4.5's successor (2026-11-27)
|
|
2681
|
+
"anthropic/claude-sonnet-5.5",
|
|
2682
|
+
// $2/$10 — sonnet-4.6's successor (2026-11-27)
|
|
2628
2683
|
"openai/gpt-5.6-terra"
|
|
2629
2684
|
// $2/$12
|
|
2630
2685
|
]
|
|
2631
2686
|
},
|
|
2632
2687
|
COMPLEX: {
|
|
2633
2688
|
// fable-5 was promoted here 2026-06-11, force-reverted 2026-06-13 when Anthropic
|
|
2634
|
-
// withdrew the offer, and restored 2026-07-14
|
|
2635
|
-
|
|
2636
|
-
//
|
|
2689
|
+
// withdrew the offer, and restored 2026-07-14 when BlockRun relisted it.
|
|
2690
|
+
// 2026-11-27 (owner decision): Opus 5.5 takes the slot. Fable 5.2 is
|
|
2691
|
+
// Base-only (Solana 503s it), and Fable 5 / 5.1 cost 2.5x Opus 5.5.
|
|
2692
|
+
primary: "anthropic/claude-opus-5.5",
|
|
2693
|
+
// $4/$20, 1M ctx, adaptive thinking, vision + tools (probed 2026-11-27)
|
|
2637
2694
|
// Fallback chain de-Gemini'd 2026-04-22: when Anthropic 503s, Gemini is
|
|
2638
2695
|
// also prone to "high demand" 503s (correlated failure — everyone falls
|
|
2639
2696
|
// back to Google at the same time). Prefer in-family → xAI → Moonshot →
|
|
2640
2697
|
// OpenAI flagship → Z.AI → DeepSeek → NVIDIA free instead.
|
|
2641
2698
|
fallback: [
|
|
2642
2699
|
"anthropic/claude-opus-5",
|
|
2643
|
-
// in-family hot swap first (
|
|
2644
|
-
"anthropic/claude-opus-4.8",
|
|
2645
|
-
// in-family hot swap (identical cost to 5)
|
|
2646
|
-
"anthropic/claude-opus-4.7",
|
|
2647
|
-
// in-family hot swap (identical cost to 4.8)
|
|
2700
|
+
// in-family hot swap first ($5/$25, 1M ctx + adaptive thinking); 4.8 and 4.7 left 2026-11-27
|
|
2648
2701
|
"anthropic/claude-sonnet-5",
|
|
2649
2702
|
// Sonnet-tier drop-down, near-Opus quality
|
|
2650
|
-
"anthropic/claude-sonnet-
|
|
2651
|
-
|
|
2703
|
+
"anthropic/claude-sonnet-5.5",
|
|
2704
|
+
// $2/$10 — sonnet-4.6's successor (2026-11-27)
|
|
2705
|
+
"xai/grok-4.7",
|
|
2652
2706
|
// xAI flagship — 503-resistant, direct-xAI SKU
|
|
2653
|
-
"moonshot/kimi-k3",
|
|
2707
|
+
"moonshot/kimi-k3.1-pro",
|
|
2654
2708
|
// Moonshot flagship, independent infra
|
|
2655
2709
|
"openai/gpt-5.6-terra",
|
|
2656
2710
|
// GPT-5.6 balanced tier — stable (Sol excluded: #202)
|
|
2657
|
-
"openai/gpt-
|
|
2658
|
-
//
|
|
2659
|
-
"openai/gpt-5.4",
|
|
2660
|
-
// Previous flagship (slow but stable, benchmarked at 6,213ms)
|
|
2711
|
+
"openai/gpt-6.2-sol",
|
|
2712
|
+
// OpenAI flagship tier, $2/$10 — replaces gpt-5.5 and gpt-5.4 (2026-11-27)
|
|
2661
2713
|
"openai/gpt-5.3-codex",
|
|
2662
2714
|
"zai/glm-5.3",
|
|
2663
2715
|
// Z.AI flagship, 1M ctx
|
|
@@ -2673,26 +2725,22 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2673
2725
|
// Sonnet 5 promoted over Sonnet 4.6 (same price; reasoning band 0.98 for both,
|
|
2674
2726
|
// plus Sonnet 5's tau2/BrowseComp trajectory evidence).
|
|
2675
2727
|
primary: "anthropic/claude-sonnet-5",
|
|
2676
|
-
// $
|
|
2728
|
+
// $2/$10, 1M ctx, adaptive thinking
|
|
2677
2729
|
fallback: [
|
|
2678
|
-
"anthropic/claude-sonnet-
|
|
2679
|
-
// in-family hot swap — same cost
|
|
2730
|
+
"anthropic/claude-sonnet-5.5",
|
|
2731
|
+
// in-family hot swap — same cost (sonnet-4.6's successor, 2026-11-27)
|
|
2732
|
+
"anthropic/claude-opus-5.5",
|
|
2733
|
+
// Newest flagship Opus w/ adaptive thinking, $4/$20
|
|
2680
2734
|
"anthropic/claude-opus-5",
|
|
2681
|
-
//
|
|
2682
|
-
"
|
|
2683
|
-
//
|
|
2684
|
-
"anthropic/claude-opus-4.7",
|
|
2685
|
-
// Flagship Opus w/ adaptive thinking
|
|
2686
|
-
"xai/grok-4.5",
|
|
2687
|
-
// reasoning band 0.94
|
|
2735
|
+
// Prior flagship Opus — in-family hot swap ($5/$25)
|
|
2736
|
+
"xai/grok-4.7",
|
|
2737
|
+
// reasoning band 0.94 (grok-4.5's prior, carried)
|
|
2688
2738
|
"deepseek/deepseek-v4-pro",
|
|
2689
2739
|
// reasoning band 0.95
|
|
2690
2740
|
"xai/grok-4.3",
|
|
2691
|
-
// $1.50
|
|
2692
|
-
"openai/
|
|
2693
|
-
// $
|
|
2694
|
-
"openai/o3"
|
|
2695
|
-
// $2/$8
|
|
2741
|
+
// $1.25/$2.50 — xAI reasoning model
|
|
2742
|
+
"openai/gpt-5.4-mini"
|
|
2743
|
+
// $0.75/$4.50 — o4-mini's and o3's successor (retired 2026-11-24 and 2026-12-11; o3 was the next rung)
|
|
2696
2744
|
]
|
|
2697
2745
|
}
|
|
2698
2746
|
},
|
|
@@ -2708,18 +2756,20 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2708
2756
|
// $0.15/$0.50 — tool calls verified live 2026-08-27
|
|
2709
2757
|
"anthropic/claude-haiku-4.5",
|
|
2710
2758
|
// $1/$5
|
|
2711
|
-
"google/gemini-
|
|
2712
|
-
// $0.30/$2.50
|
|
2759
|
+
"google/gemini-3.5-flash-lite"
|
|
2760
|
+
// $0.30/$2.50 — 2.5 Flash's successor (retired 2026-12-01)
|
|
2713
2761
|
]
|
|
2714
2762
|
},
|
|
2715
2763
|
MEDIUM: {
|
|
2716
|
-
// Was moonshot/kimi-k2.7 (hidden 2026-08)
|
|
2717
|
-
// Terminal-Bench and tau2 trajectory evidence in
|
|
2718
|
-
|
|
2719
|
-
//
|
|
2764
|
+
// Was moonshot/kimi-k2.7 (hidden 2026-08), then GPT-5 Mini — which
|
|
2765
|
+
// carries the Terminal-Bench and tau2 trajectory evidence in
|
|
2766
|
+
// portfolio.ts — until its 2026-12-11 retirement. GPT-5.6 Luna is what
|
|
2767
|
+
// the gateways serve under that name from then on.
|
|
2768
|
+
primary: "openai/gpt-5.6-luna",
|
|
2769
|
+
// $0.20/$1.20, 1M ctx, vision + tools — gpt-5-mini's affinity (4/7 Terminal-Bench, 5/6 tau2 airline), carried
|
|
2720
2770
|
fallback: [
|
|
2721
|
-
"google/gemini-3.
|
|
2722
|
-
// $
|
|
2771
|
+
"google/gemini-3.6-flash",
|
|
2772
|
+
// $0.75/$3.75 — tool_agent band 0.88 (3.5's, carried)
|
|
2723
2773
|
"zai/glm-5.3-flash",
|
|
2724
2774
|
// $0.15/$0.50 — tools verified
|
|
2725
2775
|
"openai/gpt-5.6-terra",
|
|
@@ -2730,37 +2780,33 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2730
2780
|
// $1/$5
|
|
2731
2781
|
"deepseek/deepseek-chat",
|
|
2732
2782
|
// $0.14/$0.28
|
|
2733
|
-
"moonshot/kimi-k3"
|
|
2734
|
-
// $
|
|
2783
|
+
"moonshot/kimi-k3.1-pro"
|
|
2784
|
+
// $2/$10 — tool_agent band 0.85
|
|
2735
2785
|
]
|
|
2736
2786
|
},
|
|
2737
2787
|
COMPLEX: {
|
|
2738
2788
|
// Sonnet 5 promoted over Sonnet 4.6: tau2 airline + retail reward 1.0,
|
|
2739
2789
|
// Terminal-Bench safety band lead (portfolio.ts).
|
|
2740
2790
|
primary: "anthropic/claude-sonnet-5",
|
|
2741
|
-
// $
|
|
2791
|
+
// $2/$10 — best agentic quality per trajectory evidence
|
|
2742
2792
|
// Fallback chain de-Gemini'd 2026-04-22: Gemini's "high demand" 503s
|
|
2743
2793
|
// correlate with Anthropic outages (everyone falls back together).
|
|
2744
2794
|
// Prefer 503-resistant providers first.
|
|
2745
2795
|
fallback: [
|
|
2746
|
-
"anthropic/claude-sonnet-
|
|
2747
|
-
// in-family hot swap — same cost
|
|
2796
|
+
"anthropic/claude-sonnet-5.5",
|
|
2797
|
+
// in-family hot swap — same cost (sonnet-4.6's successor, 2026-11-27)
|
|
2798
|
+
"anthropic/claude-opus-5.5",
|
|
2799
|
+
// Newest flagship Opus — in-family hot swap, $4/$20
|
|
2748
2800
|
"anthropic/claude-opus-5",
|
|
2749
|
-
//
|
|
2750
|
-
"
|
|
2751
|
-
// Prior flagship Opus — identical cost to 5
|
|
2752
|
-
"anthropic/claude-opus-4.7",
|
|
2753
|
-
// Flagship Opus — in-family hot swap
|
|
2754
|
-
"xai/grok-4.5",
|
|
2801
|
+
// Prior flagship Opus — in-family hot swap ($5/$25)
|
|
2802
|
+
"xai/grok-4.7",
|
|
2755
2803
|
// xAI flagship — strong tool use, independent infra
|
|
2756
|
-
"moonshot/kimi-k3",
|
|
2804
|
+
"moonshot/kimi-k3.1-pro",
|
|
2757
2805
|
// Moonshot flagship — independent infra
|
|
2758
2806
|
"openai/gpt-5.6-terra",
|
|
2759
2807
|
// GPT-5.6 balanced tier — stable (Sol excluded: #202)
|
|
2760
|
-
"openai/gpt-
|
|
2761
|
-
//
|
|
2762
|
-
"openai/gpt-5.4",
|
|
2763
|
-
// Previous flagship — reliable
|
|
2808
|
+
"openai/gpt-6.2-sol",
|
|
2809
|
+
// OpenAI flagship tier, $2/$10, tools verified — replaces gpt-5.5 and gpt-5.4 (2026-11-27)
|
|
2764
2810
|
"openai/gpt-5.3-codex",
|
|
2765
2811
|
// code_agent lead
|
|
2766
2812
|
"zai/glm-5.3",
|
|
@@ -2775,18 +2821,16 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2775
2821
|
},
|
|
2776
2822
|
REASONING: {
|
|
2777
2823
|
primary: "anthropic/claude-sonnet-5",
|
|
2778
|
-
// $
|
|
2824
|
+
// $2/$10 — strong tool use + adaptive thinking
|
|
2779
2825
|
fallback: [
|
|
2780
|
-
"anthropic/claude-sonnet-
|
|
2781
|
-
// in-family hot swap — same cost
|
|
2826
|
+
"anthropic/claude-sonnet-5.5",
|
|
2827
|
+
// in-family hot swap — same cost (sonnet-4.6's successor, 2026-11-27)
|
|
2828
|
+
"anthropic/claude-opus-5.5",
|
|
2829
|
+
// Newest flagship Opus w/ adaptive thinking, $4/$20
|
|
2782
2830
|
"anthropic/claude-opus-5",
|
|
2783
|
-
//
|
|
2784
|
-
"
|
|
2785
|
-
//
|
|
2786
|
-
"anthropic/claude-opus-4.7",
|
|
2787
|
-
// Flagship Opus w/ adaptive thinking
|
|
2788
|
-
"xai/grok-4.5",
|
|
2789
|
-
// reasoning band 0.94
|
|
2831
|
+
// Prior flagship Opus — in-family hot swap ($5/$25)
|
|
2832
|
+
"xai/grok-4.7",
|
|
2833
|
+
// reasoning band 0.94 (grok-4.5's prior, carried)
|
|
2790
2834
|
"deepseek/deepseek-v4-pro",
|
|
2791
2835
|
// reasoning band 0.95
|
|
2792
2836
|
"deepseek/deepseek-reasoner"
|
|
@@ -2819,6 +2863,12 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
2819
2863
|
supportsTools: true,
|
|
2820
2864
|
supportsVision: true
|
|
2821
2865
|
},
|
|
2866
|
+
"anthropic/claude-fable-5.2": {
|
|
2867
|
+
contextWindow: 1e6,
|
|
2868
|
+
maxOutputTokens: 128e3,
|
|
2869
|
+
supportsTools: true,
|
|
2870
|
+
supportsVision: true
|
|
2871
|
+
},
|
|
2822
2872
|
"anthropic/claude-haiku-4.5": {
|
|
2823
2873
|
// override: The public catalog's `categories` omit "vision" for this Anthropic model even though the gateway accepts image input for it (the prior hand-maintained snapshot had it, and Anthropic's model card lists it). Without this the vision filter would silently drop it — reported against the catalog; remove once the categories carry vision.
|
|
2824
2874
|
contextWindow: 2e5,
|
|
@@ -2881,13 +2931,6 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
2881
2931
|
supportsTools: true,
|
|
2882
2932
|
supportsVision: true
|
|
2883
2933
|
},
|
|
2884
|
-
"cohere/north-mini-code": {
|
|
2885
|
-
// supportsTools: not probed — fails closed
|
|
2886
|
-
contextWindow: 256e3,
|
|
2887
|
-
maxOutputTokens: 16384,
|
|
2888
|
-
supportsTools: false,
|
|
2889
|
-
supportsVision: false
|
|
2890
|
-
},
|
|
2891
2934
|
"deepseek/deepseek-chat": {
|
|
2892
2935
|
// override: The 2026-11-08 catalog began tagging deepseek/deepseek-chat "vision" (it was text-only through 2026-10-20), and DeepSeek still ships image input as a separate experimental id (deepseek/deepseek-v4-flash-vision-exp). No image probe has confirmed the tag. Routing an image turn to a model that silently drops the image returns a confident 200 the caller cannot branch on, so this fails closed until a correctly sized image probe passes on both chains; then remove this entry.
|
|
2893
2936
|
contextWindow: 1048576,
|
|
@@ -2957,12 +3000,6 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
2957
3000
|
supportsTools: true,
|
|
2958
3001
|
supportsVision: true
|
|
2959
3002
|
},
|
|
2960
|
-
"google/gemini-3.5-flash": {
|
|
2961
|
-
contextWindow: 1048576,
|
|
2962
|
-
maxOutputTokens: 65536,
|
|
2963
|
-
supportsTools: true,
|
|
2964
|
-
supportsVision: true
|
|
2965
|
-
},
|
|
2966
3003
|
"google/gemini-3.5-flash-lite": {
|
|
2967
3004
|
contextWindow: 1048576,
|
|
2968
3005
|
maxOutputTokens: 65536,
|
|
@@ -2982,10 +3019,27 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
2982
3019
|
supportsVision: true
|
|
2983
3020
|
},
|
|
2984
3021
|
"google/gemini-4-argon": {
|
|
2985
|
-
// supportsTools: not probed — fails closed
|
|
2986
3022
|
contextWindow: 1048576,
|
|
2987
3023
|
maxOutputTokens: 65536,
|
|
2988
|
-
supportsTools:
|
|
3024
|
+
supportsTools: true,
|
|
3025
|
+
supportsVision: true
|
|
3026
|
+
},
|
|
3027
|
+
"google/gemini-4-carbon": {
|
|
3028
|
+
contextWindow: 1048576,
|
|
3029
|
+
maxOutputTokens: 65536,
|
|
3030
|
+
supportsTools: true,
|
|
3031
|
+
supportsVision: true
|
|
3032
|
+
},
|
|
3033
|
+
"google/gemini-4-hydrogen": {
|
|
3034
|
+
contextWindow: 1048576,
|
|
3035
|
+
maxOutputTokens: 65536,
|
|
3036
|
+
supportsTools: true,
|
|
3037
|
+
supportsVision: true
|
|
3038
|
+
},
|
|
3039
|
+
"google/gemini-4-neon": {
|
|
3040
|
+
contextWindow: 1048576,
|
|
3041
|
+
maxOutputTokens: 65536,
|
|
3042
|
+
supportsTools: true,
|
|
2989
3043
|
supportsVision: true
|
|
2990
3044
|
},
|
|
2991
3045
|
"minimax/minimax-m2.7": {
|
|
@@ -3007,18 +3061,10 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3007
3061
|
supportsTools: false,
|
|
3008
3062
|
supportsVision: true
|
|
3009
3063
|
},
|
|
3010
|
-
"moonshot/kimi-k3": {
|
|
3011
|
-
// absent from the 2026-11-08 listing but still routed — previous entry retained; probe before removing
|
|
3012
|
-
contextWindow: 1048576,
|
|
3013
|
-
maxOutputTokens: 65536,
|
|
3014
|
-
supportsTools: true,
|
|
3015
|
-
supportsVision: true
|
|
3016
|
-
},
|
|
3017
3064
|
"moonshot/kimi-k3.1-pro": {
|
|
3018
|
-
// supportsTools: not probed — fails closed
|
|
3019
3065
|
contextWindow: 1048576,
|
|
3020
3066
|
maxOutputTokens: 65536,
|
|
3021
|
-
supportsTools:
|
|
3067
|
+
supportsTools: true,
|
|
3022
3068
|
supportsVision: true
|
|
3023
3069
|
},
|
|
3024
3070
|
"nvidia/minimax-m3.1-flash": {
|
|
@@ -3057,10 +3103,9 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3057
3103
|
supportsVision: false
|
|
3058
3104
|
},
|
|
3059
3105
|
"nvidia/nemotron-3.5-bolt": {
|
|
3060
|
-
// supportsTools: not probed — fails closed
|
|
3061
3106
|
contextWindow: 131072,
|
|
3062
3107
|
maxOutputTokens: 16384,
|
|
3063
|
-
supportsTools:
|
|
3108
|
+
supportsTools: true,
|
|
3064
3109
|
supportsVision: true
|
|
3065
3110
|
},
|
|
3066
3111
|
"nvidia/nemotron-3.5-lightning": {
|
|
@@ -3179,7 +3224,7 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3179
3224
|
"openai/gpt-5.6-luna-pro": {
|
|
3180
3225
|
contextWindow: 105e4,
|
|
3181
3226
|
maxOutputTokens: 128e3,
|
|
3182
|
-
supportsTools:
|
|
3227
|
+
supportsTools: true,
|
|
3183
3228
|
supportsVision: true
|
|
3184
3229
|
},
|
|
3185
3230
|
"openai/gpt-5.6-sol": {
|
|
@@ -3230,26 +3275,20 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3230
3275
|
supportsTools: true,
|
|
3231
3276
|
supportsVision: true
|
|
3232
3277
|
},
|
|
3233
|
-
"openai/
|
|
3234
|
-
contextWindow:
|
|
3235
|
-
maxOutputTokens:
|
|
3236
|
-
supportsTools: true,
|
|
3237
|
-
supportsVision: false
|
|
3238
|
-
},
|
|
3239
|
-
"openai/o3": {
|
|
3240
|
-
contextWindow: 2e5,
|
|
3241
|
-
maxOutputTokens: 1e5,
|
|
3278
|
+
"openai/gpt-6.2-astra": {
|
|
3279
|
+
contextWindow: 105e4,
|
|
3280
|
+
maxOutputTokens: 128e3,
|
|
3242
3281
|
supportsTools: true,
|
|
3243
|
-
supportsVision:
|
|
3282
|
+
supportsVision: true
|
|
3244
3283
|
},
|
|
3245
|
-
"openai/
|
|
3246
|
-
contextWindow:
|
|
3247
|
-
maxOutputTokens:
|
|
3284
|
+
"openai/gpt-6.2-sol": {
|
|
3285
|
+
contextWindow: 105e4,
|
|
3286
|
+
maxOutputTokens: 128e3,
|
|
3248
3287
|
supportsTools: true,
|
|
3249
|
-
supportsVision:
|
|
3288
|
+
supportsVision: true
|
|
3250
3289
|
},
|
|
3251
|
-
"openai/
|
|
3252
|
-
contextWindow:
|
|
3290
|
+
"openai/o3": {
|
|
3291
|
+
contextWindow: 2e5,
|
|
3253
3292
|
maxOutputTokens: 1e5,
|
|
3254
3293
|
supportsTools: true,
|
|
3255
3294
|
supportsVision: false
|
|
@@ -3262,10 +3301,9 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3262
3301
|
supportsVision: false
|
|
3263
3302
|
},
|
|
3264
3303
|
"poolside/laguna-xs-2.1": {
|
|
3265
|
-
// supportsTools: not probed — fails closed
|
|
3266
3304
|
contextWindow: 131072,
|
|
3267
3305
|
maxOutputTokens: 16384,
|
|
3268
|
-
supportsTools:
|
|
3306
|
+
supportsTools: true,
|
|
3269
3307
|
supportsVision: false
|
|
3270
3308
|
},
|
|
3271
3309
|
"qwen/qwen3.7-flash": {
|
|
@@ -3394,6 +3432,14 @@ var model_profiles_generated_default = {
|
|
|
3394
3432
|
errorRate: 0,
|
|
3395
3433
|
samples: 3
|
|
3396
3434
|
},
|
|
3435
|
+
"anthropic/claude-fable-5.2": {
|
|
3436
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3437
|
+
latencyMs: 5587.3,
|
|
3438
|
+
p95LatencyMs: 6206.1,
|
|
3439
|
+
outputTokensPerSecond: 92.94,
|
|
3440
|
+
errorRate: 0,
|
|
3441
|
+
samples: 3
|
|
3442
|
+
},
|
|
3397
3443
|
"anthropic/claude-haiku-4.5": {
|
|
3398
3444
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3399
3445
|
latencyMs: 3157.4,
|
|
@@ -3434,6 +3480,14 @@ var model_profiles_generated_default = {
|
|
|
3434
3480
|
errorRate: 0,
|
|
3435
3481
|
samples: 3
|
|
3436
3482
|
},
|
|
3483
|
+
"anthropic/claude-opus-5.5": {
|
|
3484
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3485
|
+
latencyMs: 6485.2,
|
|
3486
|
+
p95LatencyMs: 6951.2,
|
|
3487
|
+
outputTokensPerSecond: 79.15,
|
|
3488
|
+
errorRate: 0,
|
|
3489
|
+
samples: 3
|
|
3490
|
+
},
|
|
3437
3491
|
"anthropic/claude-sonnet-4.5": {
|
|
3438
3492
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3439
3493
|
latencyMs: 6330.4,
|
|
@@ -3458,6 +3512,14 @@ var model_profiles_generated_default = {
|
|
|
3458
3512
|
errorRate: 0,
|
|
3459
3513
|
samples: 3
|
|
3460
3514
|
},
|
|
3515
|
+
"anthropic/claude-sonnet-5.5": {
|
|
3516
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3517
|
+
latencyMs: 4770.2,
|
|
3518
|
+
p95LatencyMs: 5352,
|
|
3519
|
+
outputTokensPerSecond: 108.11,
|
|
3520
|
+
errorRate: 0,
|
|
3521
|
+
samples: 3
|
|
3522
|
+
},
|
|
3461
3523
|
"deepseek/deepseek-chat": {
|
|
3462
3524
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3463
3525
|
latencyMs: 4351.4,
|
|
@@ -3474,6 +3536,14 @@ var model_profiles_generated_default = {
|
|
|
3474
3536
|
errorRate: 0,
|
|
3475
3537
|
samples: 3
|
|
3476
3538
|
},
|
|
3539
|
+
"deepseek/deepseek-v4-flash-vision-exp": {
|
|
3540
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3541
|
+
latencyMs: 4078.4,
|
|
3542
|
+
p95LatencyMs: 4464.5,
|
|
3543
|
+
outputTokensPerSecond: 127,
|
|
3544
|
+
errorRate: 0,
|
|
3545
|
+
samples: 3
|
|
3546
|
+
},
|
|
3477
3547
|
"deepseek/deepseek-v4-pro": {
|
|
3478
3548
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3479
3549
|
latencyMs: 8781.2,
|
|
@@ -3562,6 +3632,38 @@ var model_profiles_generated_default = {
|
|
|
3562
3632
|
errorRate: 0,
|
|
3563
3633
|
samples: 3
|
|
3564
3634
|
},
|
|
3635
|
+
"google/gemini-4-argon": {
|
|
3636
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3637
|
+
latencyMs: 9565.7,
|
|
3638
|
+
p95LatencyMs: 10491.9,
|
|
3639
|
+
outputTokensPerSecond: 53.87,
|
|
3640
|
+
errorRate: 0,
|
|
3641
|
+
samples: 3
|
|
3642
|
+
},
|
|
3643
|
+
"google/gemini-4-carbon": {
|
|
3644
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3645
|
+
latencyMs: 10692.9,
|
|
3646
|
+
p95LatencyMs: 12609.2,
|
|
3647
|
+
outputTokensPerSecond: 48.61,
|
|
3648
|
+
errorRate: 0,
|
|
3649
|
+
samples: 3
|
|
3650
|
+
},
|
|
3651
|
+
"google/gemini-4-hydrogen": {
|
|
3652
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3653
|
+
latencyMs: 4520.7,
|
|
3654
|
+
p95LatencyMs: 4928.3,
|
|
3655
|
+
outputTokensPerSecond: 113.78,
|
|
3656
|
+
errorRate: 0,
|
|
3657
|
+
samples: 3
|
|
3658
|
+
},
|
|
3659
|
+
"google/gemini-4-neon": {
|
|
3660
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3661
|
+
latencyMs: 6728,
|
|
3662
|
+
p95LatencyMs: 8294.8,
|
|
3663
|
+
outputTokensPerSecond: 78,
|
|
3664
|
+
errorRate: 0,
|
|
3665
|
+
samples: 3
|
|
3666
|
+
},
|
|
3565
3667
|
"minimax/minimax-m2.7": {
|
|
3566
3668
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3567
3669
|
latencyMs: 8761.1,
|
|
@@ -3586,6 +3688,14 @@ var model_profiles_generated_default = {
|
|
|
3586
3688
|
errorRate: 0,
|
|
3587
3689
|
samples: 3
|
|
3588
3690
|
},
|
|
3691
|
+
"moonshot/kimi-k3.1-pro": {
|
|
3692
|
+
measuredAt: "2026-11-23T20:18:18Z",
|
|
3693
|
+
latencyMs: 9243.1,
|
|
3694
|
+
p95LatencyMs: 10504.1,
|
|
3695
|
+
outputTokensPerSecond: 55.89,
|
|
3696
|
+
errorRate: 0,
|
|
3697
|
+
samples: 3
|
|
3698
|
+
},
|
|
3589
3699
|
"nvidia/mistral-nemotron": {
|
|
3590
3700
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3591
3701
|
latencyMs: 7349.6,
|
|
@@ -3602,6 +3712,14 @@ var model_profiles_generated_default = {
|
|
|
3602
3712
|
errorRate: 0.3333,
|
|
3603
3713
|
samples: 3
|
|
3604
3714
|
},
|
|
3715
|
+
"nvidia/nemotron-3.5-bolt": {
|
|
3716
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3717
|
+
latencyMs: 5670.2,
|
|
3718
|
+
p95LatencyMs: 5688.6,
|
|
3719
|
+
outputTokensPerSecond: 90.3,
|
|
3720
|
+
errorRate: 0,
|
|
3721
|
+
samples: 3
|
|
3722
|
+
},
|
|
3605
3723
|
"nvidia/nemotron-nano-12b-v2-vl": {
|
|
3606
3724
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3607
3725
|
latencyMs: 5846.9,
|
|
@@ -3739,11 +3857,11 @@ var model_profiles_generated_default = {
|
|
|
3739
3857
|
samples: 3
|
|
3740
3858
|
},
|
|
3741
3859
|
"openai/gpt-5.6-luna-pro": {
|
|
3742
|
-
measuredAt: "2026-
|
|
3743
|
-
latencyMs:
|
|
3744
|
-
p95LatencyMs:
|
|
3745
|
-
outputTokensPerSecond:
|
|
3746
|
-
errorRate: 0
|
|
3860
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3861
|
+
latencyMs: 11046.8,
|
|
3862
|
+
p95LatencyMs: 12033.6,
|
|
3863
|
+
outputTokensPerSecond: 148.22,
|
|
3864
|
+
errorRate: 0,
|
|
3747
3865
|
samples: 3
|
|
3748
3866
|
},
|
|
3749
3867
|
"openai/gpt-5.6-sol": {
|
|
@@ -3786,6 +3904,22 @@ var model_profiles_generated_default = {
|
|
|
3786
3904
|
errorRate: 0,
|
|
3787
3905
|
samples: 3
|
|
3788
3906
|
},
|
|
3907
|
+
"openai/gpt-6.2-astra": {
|
|
3908
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3909
|
+
latencyMs: 7973.9,
|
|
3910
|
+
p95LatencyMs: 9532.7,
|
|
3911
|
+
outputTokensPerSecond: 47.21,
|
|
3912
|
+
errorRate: 0,
|
|
3913
|
+
samples: 3
|
|
3914
|
+
},
|
|
3915
|
+
"openai/gpt-6.2-sol": {
|
|
3916
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3917
|
+
latencyMs: 6310.9,
|
|
3918
|
+
p95LatencyMs: 6725.5,
|
|
3919
|
+
outputTokensPerSecond: 58.01,
|
|
3920
|
+
errorRate: 0,
|
|
3921
|
+
samples: 3
|
|
3922
|
+
},
|
|
3789
3923
|
"openai/o1": {
|
|
3790
3924
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3791
3925
|
latencyMs: 4324.9,
|
|
@@ -4233,20 +4367,20 @@ var NEUTRAL_AFFINITY = 0.68;
|
|
|
4233
4367
|
var TERMINAL_COMPLEX_HIGH = {
|
|
4234
4368
|
"claude-sonnet-5": 1,
|
|
4235
4369
|
"gpt-5.3-codex": 0.87,
|
|
4236
|
-
"gpt-5-
|
|
4237
|
-
"gemini-3.
|
|
4370
|
+
"gpt-5.6-luna": 0.78,
|
|
4371
|
+
"gemini-3.6-flash": 0.76
|
|
4238
4372
|
};
|
|
4239
4373
|
var WEB_RESEARCH_DEEP = {
|
|
4240
4374
|
"claude-sonnet-5": 1,
|
|
4241
|
-
"gpt-5-
|
|
4242
|
-
"gemini-3.
|
|
4375
|
+
"gpt-5.6-luna": 0.88,
|
|
4376
|
+
"gemini-3.6-flash": 0.84,
|
|
4243
4377
|
"claude-opus-5": 0.8,
|
|
4244
4378
|
"claude-opus-4.8": 0.78
|
|
4245
4379
|
};
|
|
4246
4380
|
var WEB_RESEARCH = {
|
|
4247
4381
|
"claude-sonnet-5": 1,
|
|
4248
|
-
"gpt-5-
|
|
4249
|
-
"gemini-3.
|
|
4382
|
+
"gpt-5.6-luna": 0.88,
|
|
4383
|
+
"gemini-3.6-flash": 0.86,
|
|
4250
4384
|
"claude-opus-5": 0.84,
|
|
4251
4385
|
"claude-opus-4.8": 0.82
|
|
4252
4386
|
};
|
|
@@ -4254,11 +4388,11 @@ var RETAIL_POLICY_EXCEPTION = {
|
|
|
4254
4388
|
"gpt-4.1": 1,
|
|
4255
4389
|
"claude-sonnet-5": 0.9,
|
|
4256
4390
|
"deepseek-v4-pro": 0.82,
|
|
4257
|
-
"gpt-5-
|
|
4391
|
+
"gpt-5.6-luna": 0.8,
|
|
4258
4392
|
"gpt-4o-mini": 0.76
|
|
4259
4393
|
};
|
|
4260
4394
|
var RETAIL_POLICY_EXCEPTION_SIMPLE = {
|
|
4261
|
-
"gpt-5-
|
|
4395
|
+
"gpt-5.6-luna": 1,
|
|
4262
4396
|
"gpt-4.1": 0.86,
|
|
4263
4397
|
"deepseek-v4-pro": 0.82,
|
|
4264
4398
|
"gpt-4o-mini": 0.8
|
|
@@ -4275,20 +4409,20 @@ var AFFINITY = {
|
|
|
4275
4409
|
codeAgent: {
|
|
4276
4410
|
"gpt-5.3-codex": 1,
|
|
4277
4411
|
"claude-sonnet-5": 0.98,
|
|
4278
|
-
"gpt-5-
|
|
4279
|
-
"gemini-3.
|
|
4280
|
-
"kimi-k3": 0.9,
|
|
4412
|
+
"gpt-5.6-luna": 0.96,
|
|
4413
|
+
"gemini-3.6-flash": 0.92,
|
|
4414
|
+
"kimi-k3.1-pro": 0.9,
|
|
4281
4415
|
"deepseek-v4-pro": 0.88,
|
|
4282
|
-
"glm-5.
|
|
4416
|
+
"glm-5.3": 0.88
|
|
4283
4417
|
},
|
|
4284
4418
|
// Seven official Terminal-Bench calibration trajectories favoured GPT-5 Mini
|
|
4285
4419
|
// over the prior dynamic choice. Codex/Sonnet are close fallbacks; actual
|
|
4286
4420
|
// request cost breaks the tie.
|
|
4287
4421
|
terminalTool: {
|
|
4288
|
-
"gpt-5-
|
|
4422
|
+
"gpt-5.6-luna": 1,
|
|
4289
4423
|
"gpt-5.3-codex": 0.98,
|
|
4290
4424
|
"claude-sonnet-5": 0.9,
|
|
4291
|
-
"gemini-3.
|
|
4425
|
+
"gemini-3.6-flash": 0.89
|
|
4292
4426
|
},
|
|
4293
4427
|
// Two complete agent observations on the public Terminal-Bench
|
|
4294
4428
|
// new-encrypt-command task ended in Codex repeating the same TerminalExec
|
|
@@ -4307,20 +4441,20 @@ var AFFINITY = {
|
|
|
4307
4441
|
// arguments. DeepSeek V4 Pro completed all three high-risk retail calibration
|
|
4308
4442
|
// trajectories (global-choice, cross-record, multi-write); Sonnet one.
|
|
4309
4443
|
retailStandard: {
|
|
4310
|
-
"gpt-5-
|
|
4444
|
+
"gpt-5.6-luna": 1,
|
|
4311
4445
|
"claude-sonnet-5": 0.88,
|
|
4312
|
-
"gemini-3.
|
|
4446
|
+
"gemini-3.6-flash": 0.82,
|
|
4313
4447
|
"gpt-5.3-codex": 0.81,
|
|
4314
|
-
"kimi-k3": 0.78,
|
|
4448
|
+
"kimi-k3.1-pro": 0.78,
|
|
4315
4449
|
"deepseek-v4-pro": 0.76
|
|
4316
4450
|
},
|
|
4317
4451
|
retailHigh: {
|
|
4318
4452
|
"deepseek-v4-pro": 1,
|
|
4319
4453
|
"claude-sonnet-5": 0.88,
|
|
4320
|
-
"gemini-3.
|
|
4454
|
+
"gemini-3.6-flash": 0.82,
|
|
4321
4455
|
"gpt-5.3-codex": 0.81,
|
|
4322
|
-
"kimi-k3": 0.78,
|
|
4323
|
-
"gpt-5-
|
|
4456
|
+
"kimi-k3.1-pro": 0.78,
|
|
4457
|
+
"gpt-5.6-luna": 0.76
|
|
4324
4458
|
},
|
|
4325
4459
|
// Standard airline workflows stay on GPT-5 Mini: six full-session
|
|
4326
4460
|
// development trajectories gave it the same 5/6 success as Sonnet at roughly
|
|
@@ -4334,14 +4468,14 @@ var AFFINITY = {
|
|
|
4334
4468
|
// roughly two orders of magnitude more on the long-tail case.
|
|
4335
4469
|
airlineComplex: {
|
|
4336
4470
|
"claude-sonnet-5": 1,
|
|
4337
|
-
"gpt-5-
|
|
4338
|
-
"gemini-3.
|
|
4471
|
+
"gpt-5.6-luna": 0.78,
|
|
4472
|
+
"gemini-3.6-flash": 0.76,
|
|
4339
4473
|
"deepseek-v4-pro": 0.74
|
|
4340
4474
|
},
|
|
4341
4475
|
airlineStandard: {
|
|
4342
|
-
"gpt-5-
|
|
4476
|
+
"gpt-5.6-luna": 1,
|
|
4343
4477
|
"claude-sonnet-5": 0.9,
|
|
4344
|
-
"gemini-3.
|
|
4478
|
+
"gemini-3.6-flash": 0.8,
|
|
4345
4479
|
"deepseek-v4-pro": 0.76
|
|
4346
4480
|
},
|
|
4347
4481
|
// Full-trajectory tau2 calibration (2026-07-28, official gpt-4.1 simulator):
|
|
@@ -4351,10 +4485,10 @@ var AFFINITY = {
|
|
|
4351
4485
|
// airline task.
|
|
4352
4486
|
toolAgent: {
|
|
4353
4487
|
"claude-sonnet-5": 1,
|
|
4354
|
-
"gemini-3.
|
|
4488
|
+
"gemini-3.6-flash": 0.88,
|
|
4355
4489
|
"gpt-5.3-codex": 0.87,
|
|
4356
|
-
"kimi-k3": 0.85,
|
|
4357
|
-
"gpt-5-
|
|
4490
|
+
"kimi-k3.1-pro": 0.85,
|
|
4491
|
+
"gpt-5.6-luna": 0.84,
|
|
4358
4492
|
"deepseek-v4-pro": 0.82
|
|
4359
4493
|
},
|
|
4360
4494
|
// Multi-file Terminal work is not equivalent to a one-turn parallel
|
|
@@ -4366,28 +4500,28 @@ var AFFINITY = {
|
|
|
4366
4500
|
"gpt-5.3-codex": 0.86
|
|
4367
4501
|
},
|
|
4368
4502
|
parallelTerminal: {
|
|
4369
|
-
"gpt-5-
|
|
4503
|
+
"gpt-5.6-luna": 1,
|
|
4370
4504
|
"gpt-5.3-codex": 0.98,
|
|
4371
4505
|
"claude-sonnet-5": 0.92,
|
|
4372
|
-
"gemini-3.
|
|
4506
|
+
"gemini-3.6-flash": 0.88
|
|
4373
4507
|
},
|
|
4374
4508
|
parallelRetail: {
|
|
4375
4509
|
"deepseek-v4-pro": 1,
|
|
4376
4510
|
"claude-sonnet-5": 0.88,
|
|
4377
4511
|
"claude-opus-4.8": 0.84,
|
|
4378
|
-
"gpt-5-
|
|
4379
|
-
"gemini-3.
|
|
4512
|
+
"gpt-5.6-luna": 0.78,
|
|
4513
|
+
"gemini-3.6-flash": 0.76
|
|
4380
4514
|
},
|
|
4381
4515
|
parallelAirlineComplex: {
|
|
4382
4516
|
"claude-sonnet-5": 1,
|
|
4383
|
-
"gpt-5-
|
|
4517
|
+
"gpt-5.6-luna": 0.78,
|
|
4384
4518
|
"claude-opus-4.8": 0.76,
|
|
4385
|
-
"gemini-3.
|
|
4519
|
+
"gemini-3.6-flash": 0.74
|
|
4386
4520
|
},
|
|
4387
4521
|
parallelAirline: {
|
|
4388
|
-
"gpt-5-
|
|
4522
|
+
"gpt-5.6-luna": 1,
|
|
4389
4523
|
"claude-sonnet-5": 0.9,
|
|
4390
|
-
"gemini-3.
|
|
4524
|
+
"gemini-3.6-flash": 0.8
|
|
4391
4525
|
},
|
|
4392
4526
|
// RouterBench calibration, 2026-07-26: Opus 4.8 produced complete multi-call
|
|
4393
4527
|
// payloads on 2/3 multilingual BFCL parallel cases. Gemini 3.5 Flash, Sonnet
|
|
@@ -4397,22 +4531,22 @@ var AFFINITY = {
|
|
|
4397
4531
|
"claude-opus-4.8": 1,
|
|
4398
4532
|
"claude-sonnet-5": 0.84,
|
|
4399
4533
|
"grok-4.5": 0.82,
|
|
4400
|
-
"gemini-3.
|
|
4534
|
+
"gemini-3.6-flash": 0.8,
|
|
4401
4535
|
"deepseek-v4-pro": 0.78
|
|
4402
4536
|
},
|
|
4403
4537
|
codeEdit: {
|
|
4404
4538
|
"gpt-5.3-codex": 1,
|
|
4405
|
-
"claude-sonnet-
|
|
4406
|
-
"glm-5.
|
|
4539
|
+
"claude-sonnet-5.5": 0.94,
|
|
4540
|
+
"glm-5.3": 0.9,
|
|
4407
4541
|
"deepseek-v4-pro": 0.86
|
|
4408
4542
|
},
|
|
4409
4543
|
reasoning: {
|
|
4410
4544
|
"claude-sonnet-5": 0.98,
|
|
4411
|
-
"claude-sonnet-
|
|
4545
|
+
"claude-sonnet-5.5": 0.98,
|
|
4412
4546
|
"deepseek-v4-pro": 0.95,
|
|
4413
|
-
"grok-4.
|
|
4547
|
+
"grok-4.7": 0.94,
|
|
4414
4548
|
"gemini-3.1-pro": 0.92,
|
|
4415
|
-
"gemini-3.
|
|
4549
|
+
"gemini-3.6-flash": 0.92
|
|
4416
4550
|
},
|
|
4417
4551
|
// RouterBench calibration (2026-07-28, six stratified GPQA Diamond tasks,
|
|
4418
4552
|
// identical agent adapter and 512-token budget): Gemini 3 Flash Preview
|
|
@@ -4422,7 +4556,7 @@ var AFFINITY = {
|
|
|
4422
4556
|
// this reasoning-only model choice.
|
|
4423
4557
|
reasoningMcq: {
|
|
4424
4558
|
"gemini-3-flash-preview": 1,
|
|
4425
|
-
"gemini-3.
|
|
4559
|
+
"gemini-3.6-flash": 0.91,
|
|
4426
4560
|
"grok-4.5": 0.9,
|
|
4427
4561
|
"claude-sonnet-5": 0.88,
|
|
4428
4562
|
"deepseek-v4-pro": 0.84
|
|
@@ -4430,18 +4564,31 @@ var AFFINITY = {
|
|
|
4430
4564
|
// Same calibration, five multilingual MGSM tasks: Gemini 3.5 Flash was 5/5
|
|
4431
4565
|
// with the lowest cost and latency; four current flagships were 4/5 and Kimi
|
|
4432
4566
|
// K2.7 was 3/5.
|
|
4567
|
+
//
|
|
4568
|
+
// Kimi K3.1 Pro, paired against Kimi K3 (2026-11-23): all 50 rows of the
|
|
4569
|
+
// pinned RouterBench MGSM slice (5 per language x 10 languages), the text
|
|
4570
|
+
// adapter's `Answer: <number>` contract and deterministic grader, 512 output
|
|
4571
|
+
// tokens, temperature 0, same rows and settings for both. K3 44/50, K3.1 Pro
|
|
4572
|
+
// 41/50; discordant pairs 5 K3-only vs 2 K3.1-only (not significant). Every
|
|
4573
|
+
// K3-only win was K3.1 Pro hitting the 512-token cap; the non-truncated
|
|
4574
|
+
// errors were the same two rows for both. Rerunning the 10 truncated rows at
|
|
4575
|
+
// 2048 tokens gave 8/10 each (46/50 each overall), so the gap is verbosity at
|
|
4576
|
+
// the calibration budget, not arithmetic. K3.1 Pro was also slower (p95
|
|
4577
|
+
// 10.4s vs 4.7s). It moves from K3's carried 0.9 to 0.88: below the models
|
|
4578
|
+
// the 4/5 calibration put at 0.9, by less than the raw 41/44 ratio because
|
|
4579
|
+
// the difference is within noise.
|
|
4433
4580
|
reasoningMath: {
|
|
4434
|
-
"gemini-3.
|
|
4581
|
+
"gemini-3.6-flash": 1,
|
|
4435
4582
|
"grok-4.5": 0.93,
|
|
4436
4583
|
"claude-sonnet-5": 0.9,
|
|
4437
4584
|
"deepseek-v4-pro": 0.9,
|
|
4438
|
-
"kimi-k3": 0.
|
|
4585
|
+
"kimi-k3.1-pro": 0.88
|
|
4439
4586
|
},
|
|
4440
4587
|
vision: {
|
|
4441
4588
|
"gemini-3.1-pro": 0.96,
|
|
4442
4589
|
"qwen3.7-max": 0.9,
|
|
4443
|
-
"claude-sonnet-
|
|
4444
|
-
"kimi-k3": 0.9,
|
|
4590
|
+
"claude-sonnet-5.5": 0.9,
|
|
4591
|
+
"kimi-k3.1-pro": 0.9,
|
|
4445
4592
|
"grok-4.3": 0.9
|
|
4446
4593
|
},
|
|
4447
4594
|
// Long-context eligibility is necessary but not sufficient: a provider can
|
|
@@ -4451,38 +4598,49 @@ var AFFINITY = {
|
|
|
4451
4598
|
longContext: {
|
|
4452
4599
|
"gemini-3.1-pro": 1,
|
|
4453
4600
|
"qwen3.7-max": 0.89,
|
|
4454
|
-
"glm-5.
|
|
4455
|
-
"gemini-3.
|
|
4601
|
+
"glm-5.3": 0.89,
|
|
4602
|
+
"gemini-3.6-flash": 0.88,
|
|
4456
4603
|
"deepseek-v4-pro": 0.85
|
|
4457
4604
|
},
|
|
4458
4605
|
// A structured extraction must preserve both the output contract and the
|
|
4459
4606
|
// source-language fields. For Mandarin input the language-native Kimi
|
|
4460
4607
|
// candidate gets a distinct band — a candidate-pool decision, not a post-hoc
|
|
4461
|
-
// override, so it still falls back normally when Kimi is unavailable.
|
|
4462
|
-
//
|
|
4463
|
-
// auto affinityFloorGap (0.10) or price alone
|
|
4464
|
-
// for Mandarin input; 0.12 keeps
|
|
4465
|
-
// leaves every other language untouched.
|
|
4608
|
+
// override, so it still falls back normally when Kimi is unavailable. The
|
|
4609
|
+
// Kimi flagship costs several times the cheap extraction models, so the band
|
|
4610
|
+
// must be wider than the auto affinityFloorGap (0.10) or price alone
|
|
4611
|
+
// re-selects a non-native model for Mandarin input; 0.12 keeps Kimi alone in
|
|
4612
|
+
// the primary band for zh and leaves every other language untouched.
|
|
4613
|
+
//
|
|
4614
|
+
// Only one "kimi-k3.1-pro" value in AFFINITY is measured on K3.1 Pro:
|
|
4615
|
+
// reasoningMath (paired K3 vs K3.1 Pro on 50 MGSM rows, 2026-11-23; see that
|
|
4616
|
+
// band). Every other value (codeAgent, retailStandard, retailHigh,
|
|
4617
|
+
// toolAgent, vision, extractionZh, extraction, chat) is still carried over
|
|
4618
|
+
// from the Kimi flagship it replaced (K3, whose values were in turn carried
|
|
4619
|
+
// from K2.7). Those bands' calibrations could not be rerun locally: the
|
|
4620
|
+
// Terminal-Bench and tau2 trajectories need the RouterBench Franklin host
|
|
4621
|
+
// (and Docker for Terminal-Bench), and no extraction or vision slice has a
|
|
4622
|
+
// runner. K3.1 Pro's other evidence is the 2026-11-23 live probe: 3/3
|
|
4623
|
+
// completions, 0 errors, a well-formed tool call.
|
|
4466
4624
|
extractionZh: {
|
|
4467
|
-
"kimi-k3": 1,
|
|
4468
|
-
"gemini-3.
|
|
4469
|
-
"gemini-
|
|
4625
|
+
"kimi-k3.1-pro": 1,
|
|
4626
|
+
"gemini-3.6-flash": 0.88,
|
|
4627
|
+
"gemini-3.5-flash-lite": 0.88,
|
|
4470
4628
|
"gpt-4o-mini": 0.88,
|
|
4471
4629
|
"claude-sonnet-5": 0.88,
|
|
4472
|
-
"claude-sonnet-
|
|
4630
|
+
"claude-sonnet-5.5": 0.88
|
|
4473
4631
|
},
|
|
4474
4632
|
extraction: {
|
|
4475
|
-
"kimi-k3": 0.9,
|
|
4476
|
-
"gemini-3.
|
|
4477
|
-
"gemini-
|
|
4633
|
+
"kimi-k3.1-pro": 0.9,
|
|
4634
|
+
"gemini-3.6-flash": 0.9,
|
|
4635
|
+
"gemini-3.5-flash-lite": 0.9,
|
|
4478
4636
|
"gpt-4o-mini": 0.9,
|
|
4479
4637
|
"claude-sonnet-5": 0.9,
|
|
4480
|
-
"claude-sonnet-
|
|
4638
|
+
"claude-sonnet-5.5": 0.9
|
|
4481
4639
|
},
|
|
4482
4640
|
chat: {
|
|
4483
|
-
"gemini-3.
|
|
4484
|
-
"gemini-
|
|
4485
|
-
"kimi-k3": 0.86
|
|
4641
|
+
"gemini-3.6-flash": 0.86,
|
|
4642
|
+
"gemini-3.5-flash-lite": 0.86,
|
|
4643
|
+
"kimi-k3.1-pro": 0.86
|
|
4486
4644
|
}
|
|
4487
4645
|
};
|
|
4488
4646
|
function affinityBand(features) {
|
|
@@ -4547,9 +4705,9 @@ function evidenceCandidates(task) {
|
|
|
4547
4705
|
return [
|
|
4548
4706
|
"openai/gpt-5.3-codex",
|
|
4549
4707
|
"anthropic/claude-sonnet-5",
|
|
4550
|
-
"openai/gpt-5-
|
|
4551
|
-
"google/gemini-3.
|
|
4552
|
-
"moonshot/kimi-k3",
|
|
4708
|
+
"openai/gpt-5.6-luna",
|
|
4709
|
+
"google/gemini-3.6-flash",
|
|
4710
|
+
"moonshot/kimi-k3.1-pro",
|
|
4553
4711
|
"deepseek/deepseek-v4-pro"
|
|
4554
4712
|
];
|
|
4555
4713
|
}
|
|
@@ -4557,12 +4715,12 @@ function evidenceCandidates(task) {
|
|
|
4557
4715
|
return [
|
|
4558
4716
|
"anthropic/claude-sonnet-5",
|
|
4559
4717
|
"anthropic/claude-opus-5",
|
|
4560
|
-
"openai/gpt-5-
|
|
4718
|
+
"openai/gpt-5.6-luna",
|
|
4561
4719
|
"openai/gpt-4.1",
|
|
4562
4720
|
"openai/gpt-4o-mini",
|
|
4563
|
-
"google/gemini-3.
|
|
4721
|
+
"google/gemini-3.6-flash",
|
|
4564
4722
|
"openai/gpt-5.3-codex",
|
|
4565
|
-
"moonshot/kimi-k3",
|
|
4723
|
+
"moonshot/kimi-k3.1-pro",
|
|
4566
4724
|
"deepseek/deepseek-v4-pro"
|
|
4567
4725
|
];
|
|
4568
4726
|
}
|
|
@@ -4571,11 +4729,11 @@ function evidenceCandidates(task) {
|
|
|
4571
4729
|
"anthropic/claude-opus-5",
|
|
4572
4730
|
"anthropic/claude-opus-4.8",
|
|
4573
4731
|
"anthropic/claude-sonnet-5",
|
|
4574
|
-
"openai/gpt-5-
|
|
4732
|
+
"openai/gpt-5.6-luna",
|
|
4575
4733
|
"openai/gpt-4.1",
|
|
4576
4734
|
"openai/gpt-4o-mini",
|
|
4577
4735
|
"xai/grok-4.5",
|
|
4578
|
-
"google/gemini-3.
|
|
4736
|
+
"google/gemini-3.6-flash",
|
|
4579
4737
|
"deepseek/deepseek-v4-pro"
|
|
4580
4738
|
];
|
|
4581
4739
|
}
|
|
@@ -4584,29 +4742,29 @@ function evidenceCandidates(task) {
|
|
|
4584
4742
|
"google/gemini-3.1-pro",
|
|
4585
4743
|
"deepseek/deepseek-v4-pro",
|
|
4586
4744
|
"qwen/qwen3.7-max",
|
|
4587
|
-
"zai/glm-5.
|
|
4588
|
-
"google/gemini-3.
|
|
4745
|
+
"zai/glm-5.3",
|
|
4746
|
+
"google/gemini-3.6-flash"
|
|
4589
4747
|
];
|
|
4590
4748
|
}
|
|
4591
4749
|
if (task === "reasoning_mcq") {
|
|
4592
4750
|
return [
|
|
4593
4751
|
"google/gemini-3-flash-preview",
|
|
4594
|
-
"google/gemini-3.
|
|
4752
|
+
"google/gemini-3.6-flash",
|
|
4595
4753
|
"xai/grok-4.5",
|
|
4596
4754
|
"anthropic/claude-sonnet-5",
|
|
4597
4755
|
"deepseek/deepseek-v4-pro"
|
|
4598
4756
|
];
|
|
4599
4757
|
}
|
|
4600
4758
|
if (task === "extraction") {
|
|
4601
|
-
return ["moonshot/kimi-k3", "google/gemini-3.
|
|
4759
|
+
return ["moonshot/kimi-k3.1-pro", "google/gemini-3.6-flash", "anthropic/claude-sonnet-5"];
|
|
4602
4760
|
}
|
|
4603
4761
|
if (task === "reasoning_math") {
|
|
4604
4762
|
return [
|
|
4605
|
-
"google/gemini-3.
|
|
4763
|
+
"google/gemini-3.6-flash",
|
|
4606
4764
|
"xai/grok-4.5",
|
|
4607
4765
|
"anthropic/claude-sonnet-5",
|
|
4608
4766
|
"deepseek/deepseek-v4-pro",
|
|
4609
|
-
"moonshot/kimi-k3"
|
|
4767
|
+
"moonshot/kimi-k3.1-pro"
|
|
4610
4768
|
];
|
|
4611
4769
|
}
|
|
4612
4770
|
return [];
|
|
@@ -4617,11 +4775,15 @@ var VERIFIED_TOOL_FALLBACKS = [
|
|
|
4617
4775
|
"anthropic/claude-sonnet-5.5",
|
|
4618
4776
|
"deepseek/deepseek-v4.1-flash",
|
|
4619
4777
|
"google/gemini-3.8-flash",
|
|
4778
|
+
"google/gemini-4-argon",
|
|
4779
|
+
"google/gemini-4-carbon",
|
|
4780
|
+
"google/gemini-4-hydrogen",
|
|
4781
|
+
"google/gemini-4-neon",
|
|
4620
4782
|
"openai/gpt-5.1",
|
|
4621
|
-
"openai/gpt-6-
|
|
4783
|
+
"openai/gpt-5.6-luna-pro",
|
|
4622
4784
|
"openai/gpt-6-luna",
|
|
4623
|
-
"openai/gpt-6-
|
|
4624
|
-
"openai/gpt-6.
|
|
4785
|
+
"openai/gpt-6.2-astra",
|
|
4786
|
+
"openai/gpt-6.2-sol",
|
|
4625
4787
|
"xai/grok-4.6",
|
|
4626
4788
|
"xai/grok-4.7",
|
|
4627
4789
|
"xiaomi/mimo-v2.5"
|
|
@@ -4754,8 +4916,8 @@ var PortfolioStrategy = class {
|
|
|
4754
4916
|
const scoredModels = rankedEntries.map((item) => item.model);
|
|
4755
4917
|
const webResearchFallbackOrder = [
|
|
4756
4918
|
"anthropic/claude-sonnet-5",
|
|
4757
|
-
"openai/gpt-5-
|
|
4758
|
-
"google/gemini-3.
|
|
4919
|
+
"openai/gpt-5.6-luna",
|
|
4920
|
+
"google/gemini-3.6-flash",
|
|
4759
4921
|
"anthropic/claude-opus-5",
|
|
4760
4922
|
"anthropic/claude-opus-4.8",
|
|
4761
4923
|
"openai/gpt-5.3-codex"
|
|
@@ -5385,7 +5547,7 @@ function getCostSummary() {
|
|
|
5385
5547
|
}
|
|
5386
5548
|
|
|
5387
5549
|
// src/version.ts
|
|
5388
|
-
var SDK_VERSION = "4.
|
|
5550
|
+
var SDK_VERSION = "4.5.0";
|
|
5389
5551
|
var USER_AGENT = `blockrun-ts/${SDK_VERSION}`;
|
|
5390
5552
|
|
|
5391
5553
|
// src/client.ts
|