@blockrun/llm 4.4.0 → 4.5.1
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/README.md +61 -40
- package/dist/index.cjs +486 -281
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +486 -281
- 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+92f77ecf38f26_fgur35njqqflxyj3ae7ccxtje4/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": {
|
|
@@ -3001,24 +3055,15 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3001
3055
|
supportsVision: false
|
|
3002
3056
|
},
|
|
3003
3057
|
"mistral/mistral-large-4": {
|
|
3004
|
-
// supportsTools: not probed — fails closed
|
|
3005
3058
|
contextWindow: 524288,
|
|
3006
3059
|
maxOutputTokens: 262144,
|
|
3007
|
-
supportsTools: false,
|
|
3008
|
-
supportsVision: true
|
|
3009
|
-
},
|
|
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
3060
|
supportsTools: true,
|
|
3015
3061
|
supportsVision: true
|
|
3016
3062
|
},
|
|
3017
3063
|
"moonshot/kimi-k3.1-pro": {
|
|
3018
|
-
// supportsTools: not probed — fails closed
|
|
3019
3064
|
contextWindow: 1048576,
|
|
3020
3065
|
maxOutputTokens: 65536,
|
|
3021
|
-
supportsTools:
|
|
3066
|
+
supportsTools: true,
|
|
3022
3067
|
supportsVision: true
|
|
3023
3068
|
},
|
|
3024
3069
|
"nvidia/minimax-m3.1-flash": {
|
|
@@ -3057,10 +3102,9 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3057
3102
|
supportsVision: false
|
|
3058
3103
|
},
|
|
3059
3104
|
"nvidia/nemotron-3.5-bolt": {
|
|
3060
|
-
// supportsTools: not probed — fails closed
|
|
3061
3105
|
contextWindow: 131072,
|
|
3062
3106
|
maxOutputTokens: 16384,
|
|
3063
|
-
supportsTools:
|
|
3107
|
+
supportsTools: true,
|
|
3064
3108
|
supportsVision: true
|
|
3065
3109
|
},
|
|
3066
3110
|
"nvidia/nemotron-3.5-lightning": {
|
|
@@ -3179,7 +3223,7 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3179
3223
|
"openai/gpt-5.6-luna-pro": {
|
|
3180
3224
|
contextWindow: 105e4,
|
|
3181
3225
|
maxOutputTokens: 128e3,
|
|
3182
|
-
supportsTools:
|
|
3226
|
+
supportsTools: true,
|
|
3183
3227
|
supportsVision: true
|
|
3184
3228
|
},
|
|
3185
3229
|
"openai/gpt-5.6-sol": {
|
|
@@ -3230,42 +3274,41 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3230
3274
|
supportsTools: true,
|
|
3231
3275
|
supportsVision: true
|
|
3232
3276
|
},
|
|
3233
|
-
"openai/
|
|
3234
|
-
contextWindow:
|
|
3235
|
-
maxOutputTokens:
|
|
3277
|
+
"openai/gpt-6.1-terra": {
|
|
3278
|
+
contextWindow: 105e4,
|
|
3279
|
+
maxOutputTokens: 128e3,
|
|
3236
3280
|
supportsTools: true,
|
|
3237
|
-
supportsVision:
|
|
3281
|
+
supportsVision: true
|
|
3238
3282
|
},
|
|
3239
|
-
"openai/
|
|
3240
|
-
contextWindow:
|
|
3241
|
-
maxOutputTokens:
|
|
3283
|
+
"openai/gpt-6.2-astra": {
|
|
3284
|
+
contextWindow: 105e4,
|
|
3285
|
+
maxOutputTokens: 128e3,
|
|
3242
3286
|
supportsTools: true,
|
|
3243
|
-
supportsVision:
|
|
3287
|
+
supportsVision: true
|
|
3244
3288
|
},
|
|
3245
|
-
"openai/
|
|
3246
|
-
contextWindow:
|
|
3247
|
-
maxOutputTokens:
|
|
3289
|
+
"openai/gpt-6.2-sol": {
|
|
3290
|
+
contextWindow: 105e4,
|
|
3291
|
+
maxOutputTokens: 128e3,
|
|
3248
3292
|
supportsTools: true,
|
|
3249
|
-
supportsVision:
|
|
3293
|
+
supportsVision: true
|
|
3250
3294
|
},
|
|
3251
|
-
"openai/
|
|
3252
|
-
contextWindow:
|
|
3295
|
+
"openai/o3": {
|
|
3296
|
+
contextWindow: 2e5,
|
|
3253
3297
|
maxOutputTokens: 1e5,
|
|
3254
3298
|
supportsTools: true,
|
|
3255
3299
|
supportsVision: false
|
|
3256
3300
|
},
|
|
3257
3301
|
"poolside/laguna-s-2.1": {
|
|
3258
|
-
// supportsTools:
|
|
3302
|
+
// supportsTools: gateway unavailable at probe time — fails closed
|
|
3259
3303
|
contextWindow: 1048576,
|
|
3260
3304
|
maxOutputTokens: 131072,
|
|
3261
3305
|
supportsTools: false,
|
|
3262
3306
|
supportsVision: false
|
|
3263
3307
|
},
|
|
3264
3308
|
"poolside/laguna-xs-2.1": {
|
|
3265
|
-
// supportsTools: not probed — fails closed
|
|
3266
3309
|
contextWindow: 131072,
|
|
3267
3310
|
maxOutputTokens: 16384,
|
|
3268
|
-
supportsTools:
|
|
3311
|
+
supportsTools: true,
|
|
3269
3312
|
supportsVision: false
|
|
3270
3313
|
},
|
|
3271
3314
|
"qwen/qwen3.7-flash": {
|
|
@@ -3289,21 +3332,19 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3289
3332
|
"qwen/qwen3.8-flash": {
|
|
3290
3333
|
contextWindow: 1e6,
|
|
3291
3334
|
maxOutputTokens: 131072,
|
|
3292
|
-
supportsTools:
|
|
3335
|
+
supportsTools: true,
|
|
3293
3336
|
supportsVision: true
|
|
3294
3337
|
},
|
|
3295
3338
|
"qwen/qwen3.8-max": {
|
|
3296
|
-
// supportsTools: not probed — fails closed
|
|
3297
3339
|
contextWindow: 1e6,
|
|
3298
3340
|
maxOutputTokens: 131072,
|
|
3299
|
-
supportsTools:
|
|
3341
|
+
supportsTools: true,
|
|
3300
3342
|
supportsVision: false
|
|
3301
3343
|
},
|
|
3302
3344
|
"tencent/hy4-preview": {
|
|
3303
|
-
// supportsTools: not probed — fails closed
|
|
3304
3345
|
contextWindow: 1048576,
|
|
3305
3346
|
maxOutputTokens: 64e3,
|
|
3306
|
-
supportsTools:
|
|
3347
|
+
supportsTools: true,
|
|
3307
3348
|
supportsVision: false
|
|
3308
3349
|
},
|
|
3309
3350
|
"xai/grok-4.3": {
|
|
@@ -3394,6 +3435,14 @@ var model_profiles_generated_default = {
|
|
|
3394
3435
|
errorRate: 0,
|
|
3395
3436
|
samples: 3
|
|
3396
3437
|
},
|
|
3438
|
+
"anthropic/claude-fable-5.2": {
|
|
3439
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3440
|
+
latencyMs: 5587.3,
|
|
3441
|
+
p95LatencyMs: 6206.1,
|
|
3442
|
+
outputTokensPerSecond: 92.94,
|
|
3443
|
+
errorRate: 0,
|
|
3444
|
+
samples: 3
|
|
3445
|
+
},
|
|
3397
3446
|
"anthropic/claude-haiku-4.5": {
|
|
3398
3447
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3399
3448
|
latencyMs: 3157.4,
|
|
@@ -3434,6 +3483,14 @@ var model_profiles_generated_default = {
|
|
|
3434
3483
|
errorRate: 0,
|
|
3435
3484
|
samples: 3
|
|
3436
3485
|
},
|
|
3486
|
+
"anthropic/claude-opus-5.5": {
|
|
3487
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3488
|
+
latencyMs: 6485.2,
|
|
3489
|
+
p95LatencyMs: 6951.2,
|
|
3490
|
+
outputTokensPerSecond: 79.15,
|
|
3491
|
+
errorRate: 0,
|
|
3492
|
+
samples: 3
|
|
3493
|
+
},
|
|
3437
3494
|
"anthropic/claude-sonnet-4.5": {
|
|
3438
3495
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3439
3496
|
latencyMs: 6330.4,
|
|
@@ -3458,6 +3515,14 @@ var model_profiles_generated_default = {
|
|
|
3458
3515
|
errorRate: 0,
|
|
3459
3516
|
samples: 3
|
|
3460
3517
|
},
|
|
3518
|
+
"anthropic/claude-sonnet-5.5": {
|
|
3519
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3520
|
+
latencyMs: 4770.2,
|
|
3521
|
+
p95LatencyMs: 5352,
|
|
3522
|
+
outputTokensPerSecond: 108.11,
|
|
3523
|
+
errorRate: 0,
|
|
3524
|
+
samples: 3
|
|
3525
|
+
},
|
|
3461
3526
|
"deepseek/deepseek-chat": {
|
|
3462
3527
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3463
3528
|
latencyMs: 4351.4,
|
|
@@ -3474,6 +3539,14 @@ var model_profiles_generated_default = {
|
|
|
3474
3539
|
errorRate: 0,
|
|
3475
3540
|
samples: 3
|
|
3476
3541
|
},
|
|
3542
|
+
"deepseek/deepseek-v4-flash-vision-exp": {
|
|
3543
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3544
|
+
latencyMs: 4078.4,
|
|
3545
|
+
p95LatencyMs: 4464.5,
|
|
3546
|
+
outputTokensPerSecond: 127,
|
|
3547
|
+
errorRate: 0,
|
|
3548
|
+
samples: 3
|
|
3549
|
+
},
|
|
3477
3550
|
"deepseek/deepseek-v4-pro": {
|
|
3478
3551
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3479
3552
|
latencyMs: 8781.2,
|
|
@@ -3562,6 +3635,38 @@ var model_profiles_generated_default = {
|
|
|
3562
3635
|
errorRate: 0,
|
|
3563
3636
|
samples: 3
|
|
3564
3637
|
},
|
|
3638
|
+
"google/gemini-4-argon": {
|
|
3639
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3640
|
+
latencyMs: 9565.7,
|
|
3641
|
+
p95LatencyMs: 10491.9,
|
|
3642
|
+
outputTokensPerSecond: 53.87,
|
|
3643
|
+
errorRate: 0,
|
|
3644
|
+
samples: 3
|
|
3645
|
+
},
|
|
3646
|
+
"google/gemini-4-carbon": {
|
|
3647
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3648
|
+
latencyMs: 10692.9,
|
|
3649
|
+
p95LatencyMs: 12609.2,
|
|
3650
|
+
outputTokensPerSecond: 48.61,
|
|
3651
|
+
errorRate: 0,
|
|
3652
|
+
samples: 3
|
|
3653
|
+
},
|
|
3654
|
+
"google/gemini-4-hydrogen": {
|
|
3655
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3656
|
+
latencyMs: 4520.7,
|
|
3657
|
+
p95LatencyMs: 4928.3,
|
|
3658
|
+
outputTokensPerSecond: 113.78,
|
|
3659
|
+
errorRate: 0,
|
|
3660
|
+
samples: 3
|
|
3661
|
+
},
|
|
3662
|
+
"google/gemini-4-neon": {
|
|
3663
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3664
|
+
latencyMs: 6728,
|
|
3665
|
+
p95LatencyMs: 8294.8,
|
|
3666
|
+
outputTokensPerSecond: 78,
|
|
3667
|
+
errorRate: 0,
|
|
3668
|
+
samples: 3
|
|
3669
|
+
},
|
|
3565
3670
|
"minimax/minimax-m2.7": {
|
|
3566
3671
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3567
3672
|
latencyMs: 8761.1,
|
|
@@ -3578,6 +3683,14 @@ var model_profiles_generated_default = {
|
|
|
3578
3683
|
errorRate: 0,
|
|
3579
3684
|
samples: 3
|
|
3580
3685
|
},
|
|
3686
|
+
"mistral/mistral-large-4": {
|
|
3687
|
+
measuredAt: "2026-11-28T04:13:09Z",
|
|
3688
|
+
latencyMs: 6174.9,
|
|
3689
|
+
p95LatencyMs: 7306.8,
|
|
3690
|
+
outputTokensPerSecond: 84.27,
|
|
3691
|
+
errorRate: 0,
|
|
3692
|
+
samples: 3
|
|
3693
|
+
},
|
|
3581
3694
|
"moonshot/kimi-k3": {
|
|
3582
3695
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3583
3696
|
latencyMs: 24498.9,
|
|
@@ -3586,6 +3699,14 @@ var model_profiles_generated_default = {
|
|
|
3586
3699
|
errorRate: 0,
|
|
3587
3700
|
samples: 3
|
|
3588
3701
|
},
|
|
3702
|
+
"moonshot/kimi-k3.1-pro": {
|
|
3703
|
+
measuredAt: "2026-11-23T20:18:18Z",
|
|
3704
|
+
latencyMs: 9243.1,
|
|
3705
|
+
p95LatencyMs: 10504.1,
|
|
3706
|
+
outputTokensPerSecond: 55.89,
|
|
3707
|
+
errorRate: 0,
|
|
3708
|
+
samples: 3
|
|
3709
|
+
},
|
|
3589
3710
|
"nvidia/mistral-nemotron": {
|
|
3590
3711
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3591
3712
|
latencyMs: 7349.6,
|
|
@@ -3602,6 +3723,14 @@ var model_profiles_generated_default = {
|
|
|
3602
3723
|
errorRate: 0.3333,
|
|
3603
3724
|
samples: 3
|
|
3604
3725
|
},
|
|
3726
|
+
"nvidia/nemotron-3.5-bolt": {
|
|
3727
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3728
|
+
latencyMs: 5670.2,
|
|
3729
|
+
p95LatencyMs: 5688.6,
|
|
3730
|
+
outputTokensPerSecond: 90.3,
|
|
3731
|
+
errorRate: 0,
|
|
3732
|
+
samples: 3
|
|
3733
|
+
},
|
|
3605
3734
|
"nvidia/nemotron-nano-12b-v2-vl": {
|
|
3606
3735
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3607
3736
|
latencyMs: 5846.9,
|
|
@@ -3739,11 +3868,11 @@ var model_profiles_generated_default = {
|
|
|
3739
3868
|
samples: 3
|
|
3740
3869
|
},
|
|
3741
3870
|
"openai/gpt-5.6-luna-pro": {
|
|
3742
|
-
measuredAt: "2026-
|
|
3743
|
-
latencyMs:
|
|
3744
|
-
p95LatencyMs:
|
|
3745
|
-
outputTokensPerSecond:
|
|
3746
|
-
errorRate: 0
|
|
3871
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3872
|
+
latencyMs: 11046.8,
|
|
3873
|
+
p95LatencyMs: 12033.6,
|
|
3874
|
+
outputTokensPerSecond: 148.22,
|
|
3875
|
+
errorRate: 0,
|
|
3747
3876
|
samples: 3
|
|
3748
3877
|
},
|
|
3749
3878
|
"openai/gpt-5.6-sol": {
|
|
@@ -3786,6 +3915,30 @@ var model_profiles_generated_default = {
|
|
|
3786
3915
|
errorRate: 0,
|
|
3787
3916
|
samples: 3
|
|
3788
3917
|
},
|
|
3918
|
+
"openai/gpt-6.1-terra": {
|
|
3919
|
+
measuredAt: "2026-11-28T04:14:35Z",
|
|
3920
|
+
latencyMs: 6020,
|
|
3921
|
+
p95LatencyMs: 6378.1,
|
|
3922
|
+
outputTokensPerSecond: 57.78,
|
|
3923
|
+
errorRate: 0,
|
|
3924
|
+
samples: 3
|
|
3925
|
+
},
|
|
3926
|
+
"openai/gpt-6.2-astra": {
|
|
3927
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3928
|
+
latencyMs: 7973.9,
|
|
3929
|
+
p95LatencyMs: 9532.7,
|
|
3930
|
+
outputTokensPerSecond: 47.21,
|
|
3931
|
+
errorRate: 0,
|
|
3932
|
+
samples: 3
|
|
3933
|
+
},
|
|
3934
|
+
"openai/gpt-6.2-sol": {
|
|
3935
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3936
|
+
latencyMs: 6310.9,
|
|
3937
|
+
p95LatencyMs: 6725.5,
|
|
3938
|
+
outputTokensPerSecond: 58.01,
|
|
3939
|
+
errorRate: 0,
|
|
3940
|
+
samples: 3
|
|
3941
|
+
},
|
|
3789
3942
|
"openai/o1": {
|
|
3790
3943
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3791
3944
|
latencyMs: 4324.9,
|
|
@@ -3842,6 +3995,22 @@ var model_profiles_generated_default = {
|
|
|
3842
3995
|
errorRate: 0,
|
|
3843
3996
|
samples: 3
|
|
3844
3997
|
},
|
|
3998
|
+
"qwen/qwen3.8-flash": {
|
|
3999
|
+
measuredAt: "2026-11-28T04:13:09Z",
|
|
4000
|
+
latencyMs: 8271.9,
|
|
4001
|
+
p95LatencyMs: 8495,
|
|
4002
|
+
outputTokensPerSecond: 61.95,
|
|
4003
|
+
errorRate: 0,
|
|
4004
|
+
samples: 3
|
|
4005
|
+
},
|
|
4006
|
+
"qwen/qwen3.8-max": {
|
|
4007
|
+
measuredAt: "2026-11-28T04:13:09Z",
|
|
4008
|
+
latencyMs: 15575.9,
|
|
4009
|
+
p95LatencyMs: 16331,
|
|
4010
|
+
outputTokensPerSecond: 32.95,
|
|
4011
|
+
errorRate: 0,
|
|
4012
|
+
samples: 3
|
|
4013
|
+
},
|
|
3845
4014
|
"tencent/hy3": {
|
|
3846
4015
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3847
4016
|
latencyMs: 6062.3,
|
|
@@ -3850,6 +4019,14 @@ var model_profiles_generated_default = {
|
|
|
3850
4019
|
errorRate: 0,
|
|
3851
4020
|
samples: 3
|
|
3852
4021
|
},
|
|
4022
|
+
"tencent/hy4-preview": {
|
|
4023
|
+
measuredAt: "2026-11-28T04:13:09Z",
|
|
4024
|
+
latencyMs: 9049.2,
|
|
4025
|
+
p95LatencyMs: 9460.4,
|
|
4026
|
+
outputTokensPerSecond: 56.69,
|
|
4027
|
+
errorRate: 0,
|
|
4028
|
+
samples: 3
|
|
4029
|
+
},
|
|
3853
4030
|
"xai/grok-4.3": {
|
|
3854
4031
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3855
4032
|
latencyMs: 9467.7,
|
|
@@ -4233,20 +4410,20 @@ var NEUTRAL_AFFINITY = 0.68;
|
|
|
4233
4410
|
var TERMINAL_COMPLEX_HIGH = {
|
|
4234
4411
|
"claude-sonnet-5": 1,
|
|
4235
4412
|
"gpt-5.3-codex": 0.87,
|
|
4236
|
-
"gpt-5-
|
|
4237
|
-
"gemini-3.
|
|
4413
|
+
"gpt-5.6-luna": 0.78,
|
|
4414
|
+
"gemini-3.6-flash": 0.76
|
|
4238
4415
|
};
|
|
4239
4416
|
var WEB_RESEARCH_DEEP = {
|
|
4240
4417
|
"claude-sonnet-5": 1,
|
|
4241
|
-
"gpt-5-
|
|
4242
|
-
"gemini-3.
|
|
4418
|
+
"gpt-5.6-luna": 0.88,
|
|
4419
|
+
"gemini-3.6-flash": 0.84,
|
|
4243
4420
|
"claude-opus-5": 0.8,
|
|
4244
4421
|
"claude-opus-4.8": 0.78
|
|
4245
4422
|
};
|
|
4246
4423
|
var WEB_RESEARCH = {
|
|
4247
4424
|
"claude-sonnet-5": 1,
|
|
4248
|
-
"gpt-5-
|
|
4249
|
-
"gemini-3.
|
|
4425
|
+
"gpt-5.6-luna": 0.88,
|
|
4426
|
+
"gemini-3.6-flash": 0.86,
|
|
4250
4427
|
"claude-opus-5": 0.84,
|
|
4251
4428
|
"claude-opus-4.8": 0.82
|
|
4252
4429
|
};
|
|
@@ -4254,11 +4431,11 @@ var RETAIL_POLICY_EXCEPTION = {
|
|
|
4254
4431
|
"gpt-4.1": 1,
|
|
4255
4432
|
"claude-sonnet-5": 0.9,
|
|
4256
4433
|
"deepseek-v4-pro": 0.82,
|
|
4257
|
-
"gpt-5-
|
|
4434
|
+
"gpt-5.6-luna": 0.8,
|
|
4258
4435
|
"gpt-4o-mini": 0.76
|
|
4259
4436
|
};
|
|
4260
4437
|
var RETAIL_POLICY_EXCEPTION_SIMPLE = {
|
|
4261
|
-
"gpt-5-
|
|
4438
|
+
"gpt-5.6-luna": 1,
|
|
4262
4439
|
"gpt-4.1": 0.86,
|
|
4263
4440
|
"deepseek-v4-pro": 0.82,
|
|
4264
4441
|
"gpt-4o-mini": 0.8
|
|
@@ -4275,20 +4452,20 @@ var AFFINITY = {
|
|
|
4275
4452
|
codeAgent: {
|
|
4276
4453
|
"gpt-5.3-codex": 1,
|
|
4277
4454
|
"claude-sonnet-5": 0.98,
|
|
4278
|
-
"gpt-5-
|
|
4279
|
-
"gemini-3.
|
|
4280
|
-
"kimi-k3": 0.9,
|
|
4455
|
+
"gpt-5.6-luna": 0.96,
|
|
4456
|
+
"gemini-3.6-flash": 0.92,
|
|
4457
|
+
"kimi-k3.1-pro": 0.9,
|
|
4281
4458
|
"deepseek-v4-pro": 0.88,
|
|
4282
|
-
"glm-5.
|
|
4459
|
+
"glm-5.3": 0.88
|
|
4283
4460
|
},
|
|
4284
4461
|
// Seven official Terminal-Bench calibration trajectories favoured GPT-5 Mini
|
|
4285
4462
|
// over the prior dynamic choice. Codex/Sonnet are close fallbacks; actual
|
|
4286
4463
|
// request cost breaks the tie.
|
|
4287
4464
|
terminalTool: {
|
|
4288
|
-
"gpt-5-
|
|
4465
|
+
"gpt-5.6-luna": 1,
|
|
4289
4466
|
"gpt-5.3-codex": 0.98,
|
|
4290
4467
|
"claude-sonnet-5": 0.9,
|
|
4291
|
-
"gemini-3.
|
|
4468
|
+
"gemini-3.6-flash": 0.89
|
|
4292
4469
|
},
|
|
4293
4470
|
// Two complete agent observations on the public Terminal-Bench
|
|
4294
4471
|
// new-encrypt-command task ended in Codex repeating the same TerminalExec
|
|
@@ -4307,20 +4484,20 @@ var AFFINITY = {
|
|
|
4307
4484
|
// arguments. DeepSeek V4 Pro completed all three high-risk retail calibration
|
|
4308
4485
|
// trajectories (global-choice, cross-record, multi-write); Sonnet one.
|
|
4309
4486
|
retailStandard: {
|
|
4310
|
-
"gpt-5-
|
|
4487
|
+
"gpt-5.6-luna": 1,
|
|
4311
4488
|
"claude-sonnet-5": 0.88,
|
|
4312
|
-
"gemini-3.
|
|
4489
|
+
"gemini-3.6-flash": 0.82,
|
|
4313
4490
|
"gpt-5.3-codex": 0.81,
|
|
4314
|
-
"kimi-k3": 0.78,
|
|
4491
|
+
"kimi-k3.1-pro": 0.78,
|
|
4315
4492
|
"deepseek-v4-pro": 0.76
|
|
4316
4493
|
},
|
|
4317
4494
|
retailHigh: {
|
|
4318
4495
|
"deepseek-v4-pro": 1,
|
|
4319
4496
|
"claude-sonnet-5": 0.88,
|
|
4320
|
-
"gemini-3.
|
|
4497
|
+
"gemini-3.6-flash": 0.82,
|
|
4321
4498
|
"gpt-5.3-codex": 0.81,
|
|
4322
|
-
"kimi-k3": 0.78,
|
|
4323
|
-
"gpt-5-
|
|
4499
|
+
"kimi-k3.1-pro": 0.78,
|
|
4500
|
+
"gpt-5.6-luna": 0.76
|
|
4324
4501
|
},
|
|
4325
4502
|
// Standard airline workflows stay on GPT-5 Mini: six full-session
|
|
4326
4503
|
// development trajectories gave it the same 5/6 success as Sonnet at roughly
|
|
@@ -4334,14 +4511,14 @@ var AFFINITY = {
|
|
|
4334
4511
|
// roughly two orders of magnitude more on the long-tail case.
|
|
4335
4512
|
airlineComplex: {
|
|
4336
4513
|
"claude-sonnet-5": 1,
|
|
4337
|
-
"gpt-5-
|
|
4338
|
-
"gemini-3.
|
|
4514
|
+
"gpt-5.6-luna": 0.78,
|
|
4515
|
+
"gemini-3.6-flash": 0.76,
|
|
4339
4516
|
"deepseek-v4-pro": 0.74
|
|
4340
4517
|
},
|
|
4341
4518
|
airlineStandard: {
|
|
4342
|
-
"gpt-5-
|
|
4519
|
+
"gpt-5.6-luna": 1,
|
|
4343
4520
|
"claude-sonnet-5": 0.9,
|
|
4344
|
-
"gemini-3.
|
|
4521
|
+
"gemini-3.6-flash": 0.8,
|
|
4345
4522
|
"deepseek-v4-pro": 0.76
|
|
4346
4523
|
},
|
|
4347
4524
|
// Full-trajectory tau2 calibration (2026-07-28, official gpt-4.1 simulator):
|
|
@@ -4351,10 +4528,10 @@ var AFFINITY = {
|
|
|
4351
4528
|
// airline task.
|
|
4352
4529
|
toolAgent: {
|
|
4353
4530
|
"claude-sonnet-5": 1,
|
|
4354
|
-
"gemini-3.
|
|
4531
|
+
"gemini-3.6-flash": 0.88,
|
|
4355
4532
|
"gpt-5.3-codex": 0.87,
|
|
4356
|
-
"kimi-k3": 0.85,
|
|
4357
|
-
"gpt-5-
|
|
4533
|
+
"kimi-k3.1-pro": 0.85,
|
|
4534
|
+
"gpt-5.6-luna": 0.84,
|
|
4358
4535
|
"deepseek-v4-pro": 0.82
|
|
4359
4536
|
},
|
|
4360
4537
|
// Multi-file Terminal work is not equivalent to a one-turn parallel
|
|
@@ -4366,28 +4543,28 @@ var AFFINITY = {
|
|
|
4366
4543
|
"gpt-5.3-codex": 0.86
|
|
4367
4544
|
},
|
|
4368
4545
|
parallelTerminal: {
|
|
4369
|
-
"gpt-5-
|
|
4546
|
+
"gpt-5.6-luna": 1,
|
|
4370
4547
|
"gpt-5.3-codex": 0.98,
|
|
4371
4548
|
"claude-sonnet-5": 0.92,
|
|
4372
|
-
"gemini-3.
|
|
4549
|
+
"gemini-3.6-flash": 0.88
|
|
4373
4550
|
},
|
|
4374
4551
|
parallelRetail: {
|
|
4375
4552
|
"deepseek-v4-pro": 1,
|
|
4376
4553
|
"claude-sonnet-5": 0.88,
|
|
4377
4554
|
"claude-opus-4.8": 0.84,
|
|
4378
|
-
"gpt-5-
|
|
4379
|
-
"gemini-3.
|
|
4555
|
+
"gpt-5.6-luna": 0.78,
|
|
4556
|
+
"gemini-3.6-flash": 0.76
|
|
4380
4557
|
},
|
|
4381
4558
|
parallelAirlineComplex: {
|
|
4382
4559
|
"claude-sonnet-5": 1,
|
|
4383
|
-
"gpt-5-
|
|
4560
|
+
"gpt-5.6-luna": 0.78,
|
|
4384
4561
|
"claude-opus-4.8": 0.76,
|
|
4385
|
-
"gemini-3.
|
|
4562
|
+
"gemini-3.6-flash": 0.74
|
|
4386
4563
|
},
|
|
4387
4564
|
parallelAirline: {
|
|
4388
|
-
"gpt-5-
|
|
4565
|
+
"gpt-5.6-luna": 1,
|
|
4389
4566
|
"claude-sonnet-5": 0.9,
|
|
4390
|
-
"gemini-3.
|
|
4567
|
+
"gemini-3.6-flash": 0.8
|
|
4391
4568
|
},
|
|
4392
4569
|
// RouterBench calibration, 2026-07-26: Opus 4.8 produced complete multi-call
|
|
4393
4570
|
// payloads on 2/3 multilingual BFCL parallel cases. Gemini 3.5 Flash, Sonnet
|
|
@@ -4397,22 +4574,22 @@ var AFFINITY = {
|
|
|
4397
4574
|
"claude-opus-4.8": 1,
|
|
4398
4575
|
"claude-sonnet-5": 0.84,
|
|
4399
4576
|
"grok-4.5": 0.82,
|
|
4400
|
-
"gemini-3.
|
|
4577
|
+
"gemini-3.6-flash": 0.8,
|
|
4401
4578
|
"deepseek-v4-pro": 0.78
|
|
4402
4579
|
},
|
|
4403
4580
|
codeEdit: {
|
|
4404
4581
|
"gpt-5.3-codex": 1,
|
|
4405
|
-
"claude-sonnet-
|
|
4406
|
-
"glm-5.
|
|
4582
|
+
"claude-sonnet-5.5": 0.94,
|
|
4583
|
+
"glm-5.3": 0.9,
|
|
4407
4584
|
"deepseek-v4-pro": 0.86
|
|
4408
4585
|
},
|
|
4409
4586
|
reasoning: {
|
|
4410
4587
|
"claude-sonnet-5": 0.98,
|
|
4411
|
-
"claude-sonnet-
|
|
4588
|
+
"claude-sonnet-5.5": 0.98,
|
|
4412
4589
|
"deepseek-v4-pro": 0.95,
|
|
4413
|
-
"grok-4.
|
|
4590
|
+
"grok-4.7": 0.94,
|
|
4414
4591
|
"gemini-3.1-pro": 0.92,
|
|
4415
|
-
"gemini-3.
|
|
4592
|
+
"gemini-3.6-flash": 0.92
|
|
4416
4593
|
},
|
|
4417
4594
|
// RouterBench calibration (2026-07-28, six stratified GPQA Diamond tasks,
|
|
4418
4595
|
// identical agent adapter and 512-token budget): Gemini 3 Flash Preview
|
|
@@ -4422,7 +4599,7 @@ var AFFINITY = {
|
|
|
4422
4599
|
// this reasoning-only model choice.
|
|
4423
4600
|
reasoningMcq: {
|
|
4424
4601
|
"gemini-3-flash-preview": 1,
|
|
4425
|
-
"gemini-3.
|
|
4602
|
+
"gemini-3.6-flash": 0.91,
|
|
4426
4603
|
"grok-4.5": 0.9,
|
|
4427
4604
|
"claude-sonnet-5": 0.88,
|
|
4428
4605
|
"deepseek-v4-pro": 0.84
|
|
@@ -4430,18 +4607,31 @@ var AFFINITY = {
|
|
|
4430
4607
|
// Same calibration, five multilingual MGSM tasks: Gemini 3.5 Flash was 5/5
|
|
4431
4608
|
// with the lowest cost and latency; four current flagships were 4/5 and Kimi
|
|
4432
4609
|
// K2.7 was 3/5.
|
|
4610
|
+
//
|
|
4611
|
+
// Kimi K3.1 Pro, paired against Kimi K3 (2026-11-23): all 50 rows of the
|
|
4612
|
+
// pinned RouterBench MGSM slice (5 per language x 10 languages), the text
|
|
4613
|
+
// adapter's `Answer: <number>` contract and deterministic grader, 512 output
|
|
4614
|
+
// tokens, temperature 0, same rows and settings for both. K3 44/50, K3.1 Pro
|
|
4615
|
+
// 41/50; discordant pairs 5 K3-only vs 2 K3.1-only (not significant). Every
|
|
4616
|
+
// K3-only win was K3.1 Pro hitting the 512-token cap; the non-truncated
|
|
4617
|
+
// errors were the same two rows for both. Rerunning the 10 truncated rows at
|
|
4618
|
+
// 2048 tokens gave 8/10 each (46/50 each overall), so the gap is verbosity at
|
|
4619
|
+
// the calibration budget, not arithmetic. K3.1 Pro was also slower (p95
|
|
4620
|
+
// 10.4s vs 4.7s). It moves from K3's carried 0.9 to 0.88: below the models
|
|
4621
|
+
// the 4/5 calibration put at 0.9, by less than the raw 41/44 ratio because
|
|
4622
|
+
// the difference is within noise.
|
|
4433
4623
|
reasoningMath: {
|
|
4434
|
-
"gemini-3.
|
|
4624
|
+
"gemini-3.6-flash": 1,
|
|
4435
4625
|
"grok-4.5": 0.93,
|
|
4436
4626
|
"claude-sonnet-5": 0.9,
|
|
4437
4627
|
"deepseek-v4-pro": 0.9,
|
|
4438
|
-
"kimi-k3": 0.
|
|
4628
|
+
"kimi-k3.1-pro": 0.88
|
|
4439
4629
|
},
|
|
4440
4630
|
vision: {
|
|
4441
4631
|
"gemini-3.1-pro": 0.96,
|
|
4442
4632
|
"qwen3.7-max": 0.9,
|
|
4443
|
-
"claude-sonnet-
|
|
4444
|
-
"kimi-k3": 0.9,
|
|
4633
|
+
"claude-sonnet-5.5": 0.9,
|
|
4634
|
+
"kimi-k3.1-pro": 0.9,
|
|
4445
4635
|
"grok-4.3": 0.9
|
|
4446
4636
|
},
|
|
4447
4637
|
// Long-context eligibility is necessary but not sufficient: a provider can
|
|
@@ -4451,38 +4641,49 @@ var AFFINITY = {
|
|
|
4451
4641
|
longContext: {
|
|
4452
4642
|
"gemini-3.1-pro": 1,
|
|
4453
4643
|
"qwen3.7-max": 0.89,
|
|
4454
|
-
"glm-5.
|
|
4455
|
-
"gemini-3.
|
|
4644
|
+
"glm-5.3": 0.89,
|
|
4645
|
+
"gemini-3.6-flash": 0.88,
|
|
4456
4646
|
"deepseek-v4-pro": 0.85
|
|
4457
4647
|
},
|
|
4458
4648
|
// A structured extraction must preserve both the output contract and the
|
|
4459
4649
|
// source-language fields. For Mandarin input the language-native Kimi
|
|
4460
4650
|
// 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.
|
|
4651
|
+
// override, so it still falls back normally when Kimi is unavailable. The
|
|
4652
|
+
// Kimi flagship costs several times the cheap extraction models, so the band
|
|
4653
|
+
// must be wider than the auto affinityFloorGap (0.10) or price alone
|
|
4654
|
+
// re-selects a non-native model for Mandarin input; 0.12 keeps Kimi alone in
|
|
4655
|
+
// the primary band for zh and leaves every other language untouched.
|
|
4656
|
+
//
|
|
4657
|
+
// Only one "kimi-k3.1-pro" value in AFFINITY is measured on K3.1 Pro:
|
|
4658
|
+
// reasoningMath (paired K3 vs K3.1 Pro on 50 MGSM rows, 2026-11-23; see that
|
|
4659
|
+
// band). Every other value (codeAgent, retailStandard, retailHigh,
|
|
4660
|
+
// toolAgent, vision, extractionZh, extraction, chat) is still carried over
|
|
4661
|
+
// from the Kimi flagship it replaced (K3, whose values were in turn carried
|
|
4662
|
+
// from K2.7). Those bands' calibrations could not be rerun locally: the
|
|
4663
|
+
// Terminal-Bench and tau2 trajectories need the RouterBench Franklin host
|
|
4664
|
+
// (and Docker for Terminal-Bench), and no extraction or vision slice has a
|
|
4665
|
+
// runner. K3.1 Pro's other evidence is the 2026-11-23 live probe: 3/3
|
|
4666
|
+
// completions, 0 errors, a well-formed tool call.
|
|
4466
4667
|
extractionZh: {
|
|
4467
|
-
"kimi-k3": 1,
|
|
4468
|
-
"gemini-3.
|
|
4469
|
-
"gemini-
|
|
4668
|
+
"kimi-k3.1-pro": 1,
|
|
4669
|
+
"gemini-3.6-flash": 0.88,
|
|
4670
|
+
"gemini-3.5-flash-lite": 0.88,
|
|
4470
4671
|
"gpt-4o-mini": 0.88,
|
|
4471
4672
|
"claude-sonnet-5": 0.88,
|
|
4472
|
-
"claude-sonnet-
|
|
4673
|
+
"claude-sonnet-5.5": 0.88
|
|
4473
4674
|
},
|
|
4474
4675
|
extraction: {
|
|
4475
|
-
"kimi-k3": 0.9,
|
|
4476
|
-
"gemini-3.
|
|
4477
|
-
"gemini-
|
|
4676
|
+
"kimi-k3.1-pro": 0.9,
|
|
4677
|
+
"gemini-3.6-flash": 0.9,
|
|
4678
|
+
"gemini-3.5-flash-lite": 0.9,
|
|
4478
4679
|
"gpt-4o-mini": 0.9,
|
|
4479
4680
|
"claude-sonnet-5": 0.9,
|
|
4480
|
-
"claude-sonnet-
|
|
4681
|
+
"claude-sonnet-5.5": 0.9
|
|
4481
4682
|
},
|
|
4482
4683
|
chat: {
|
|
4483
|
-
"gemini-3.
|
|
4484
|
-
"gemini-
|
|
4485
|
-
"kimi-k3": 0.86
|
|
4684
|
+
"gemini-3.6-flash": 0.86,
|
|
4685
|
+
"gemini-3.5-flash-lite": 0.86,
|
|
4686
|
+
"kimi-k3.1-pro": 0.86
|
|
4486
4687
|
}
|
|
4487
4688
|
};
|
|
4488
4689
|
function affinityBand(features) {
|
|
@@ -4547,9 +4748,9 @@ function evidenceCandidates(task) {
|
|
|
4547
4748
|
return [
|
|
4548
4749
|
"openai/gpt-5.3-codex",
|
|
4549
4750
|
"anthropic/claude-sonnet-5",
|
|
4550
|
-
"openai/gpt-5-
|
|
4551
|
-
"google/gemini-3.
|
|
4552
|
-
"moonshot/kimi-k3",
|
|
4751
|
+
"openai/gpt-5.6-luna",
|
|
4752
|
+
"google/gemini-3.6-flash",
|
|
4753
|
+
"moonshot/kimi-k3.1-pro",
|
|
4553
4754
|
"deepseek/deepseek-v4-pro"
|
|
4554
4755
|
];
|
|
4555
4756
|
}
|
|
@@ -4557,12 +4758,12 @@ function evidenceCandidates(task) {
|
|
|
4557
4758
|
return [
|
|
4558
4759
|
"anthropic/claude-sonnet-5",
|
|
4559
4760
|
"anthropic/claude-opus-5",
|
|
4560
|
-
"openai/gpt-5-
|
|
4761
|
+
"openai/gpt-5.6-luna",
|
|
4561
4762
|
"openai/gpt-4.1",
|
|
4562
4763
|
"openai/gpt-4o-mini",
|
|
4563
|
-
"google/gemini-3.
|
|
4764
|
+
"google/gemini-3.6-flash",
|
|
4564
4765
|
"openai/gpt-5.3-codex",
|
|
4565
|
-
"moonshot/kimi-k3",
|
|
4766
|
+
"moonshot/kimi-k3.1-pro",
|
|
4566
4767
|
"deepseek/deepseek-v4-pro"
|
|
4567
4768
|
];
|
|
4568
4769
|
}
|
|
@@ -4571,11 +4772,11 @@ function evidenceCandidates(task) {
|
|
|
4571
4772
|
"anthropic/claude-opus-5",
|
|
4572
4773
|
"anthropic/claude-opus-4.8",
|
|
4573
4774
|
"anthropic/claude-sonnet-5",
|
|
4574
|
-
"openai/gpt-5-
|
|
4775
|
+
"openai/gpt-5.6-luna",
|
|
4575
4776
|
"openai/gpt-4.1",
|
|
4576
4777
|
"openai/gpt-4o-mini",
|
|
4577
4778
|
"xai/grok-4.5",
|
|
4578
|
-
"google/gemini-3.
|
|
4779
|
+
"google/gemini-3.6-flash",
|
|
4579
4780
|
"deepseek/deepseek-v4-pro"
|
|
4580
4781
|
];
|
|
4581
4782
|
}
|
|
@@ -4584,29 +4785,29 @@ function evidenceCandidates(task) {
|
|
|
4584
4785
|
"google/gemini-3.1-pro",
|
|
4585
4786
|
"deepseek/deepseek-v4-pro",
|
|
4586
4787
|
"qwen/qwen3.7-max",
|
|
4587
|
-
"zai/glm-5.
|
|
4588
|
-
"google/gemini-3.
|
|
4788
|
+
"zai/glm-5.3",
|
|
4789
|
+
"google/gemini-3.6-flash"
|
|
4589
4790
|
];
|
|
4590
4791
|
}
|
|
4591
4792
|
if (task === "reasoning_mcq") {
|
|
4592
4793
|
return [
|
|
4593
4794
|
"google/gemini-3-flash-preview",
|
|
4594
|
-
"google/gemini-3.
|
|
4795
|
+
"google/gemini-3.6-flash",
|
|
4595
4796
|
"xai/grok-4.5",
|
|
4596
4797
|
"anthropic/claude-sonnet-5",
|
|
4597
4798
|
"deepseek/deepseek-v4-pro"
|
|
4598
4799
|
];
|
|
4599
4800
|
}
|
|
4600
4801
|
if (task === "extraction") {
|
|
4601
|
-
return ["moonshot/kimi-k3", "google/gemini-3.
|
|
4802
|
+
return ["moonshot/kimi-k3.1-pro", "google/gemini-3.6-flash", "anthropic/claude-sonnet-5"];
|
|
4602
4803
|
}
|
|
4603
4804
|
if (task === "reasoning_math") {
|
|
4604
4805
|
return [
|
|
4605
|
-
"google/gemini-3.
|
|
4806
|
+
"google/gemini-3.6-flash",
|
|
4606
4807
|
"xai/grok-4.5",
|
|
4607
4808
|
"anthropic/claude-sonnet-5",
|
|
4608
4809
|
"deepseek/deepseek-v4-pro",
|
|
4609
|
-
"moonshot/kimi-k3"
|
|
4810
|
+
"moonshot/kimi-k3.1-pro"
|
|
4610
4811
|
];
|
|
4611
4812
|
}
|
|
4612
4813
|
return [];
|
|
@@ -4617,11 +4818,15 @@ var VERIFIED_TOOL_FALLBACKS = [
|
|
|
4617
4818
|
"anthropic/claude-sonnet-5.5",
|
|
4618
4819
|
"deepseek/deepseek-v4.1-flash",
|
|
4619
4820
|
"google/gemini-3.8-flash",
|
|
4821
|
+
"google/gemini-4-argon",
|
|
4822
|
+
"google/gemini-4-carbon",
|
|
4823
|
+
"google/gemini-4-hydrogen",
|
|
4824
|
+
"google/gemini-4-neon",
|
|
4620
4825
|
"openai/gpt-5.1",
|
|
4621
|
-
"openai/gpt-6-
|
|
4826
|
+
"openai/gpt-5.6-luna-pro",
|
|
4622
4827
|
"openai/gpt-6-luna",
|
|
4623
|
-
"openai/gpt-6-
|
|
4624
|
-
"openai/gpt-6.
|
|
4828
|
+
"openai/gpt-6.2-astra",
|
|
4829
|
+
"openai/gpt-6.2-sol",
|
|
4625
4830
|
"xai/grok-4.6",
|
|
4626
4831
|
"xai/grok-4.7",
|
|
4627
4832
|
"xiaomi/mimo-v2.5"
|
|
@@ -4754,8 +4959,8 @@ var PortfolioStrategy = class {
|
|
|
4754
4959
|
const scoredModels = rankedEntries.map((item) => item.model);
|
|
4755
4960
|
const webResearchFallbackOrder = [
|
|
4756
4961
|
"anthropic/claude-sonnet-5",
|
|
4757
|
-
"openai/gpt-5-
|
|
4758
|
-
"google/gemini-3.
|
|
4962
|
+
"openai/gpt-5.6-luna",
|
|
4963
|
+
"google/gemini-3.6-flash",
|
|
4759
4964
|
"anthropic/claude-opus-5",
|
|
4760
4965
|
"anthropic/claude-opus-4.8",
|
|
4761
4966
|
"openai/gpt-5.3-codex"
|
|
@@ -5385,7 +5590,7 @@ function getCostSummary() {
|
|
|
5385
5590
|
}
|
|
5386
5591
|
|
|
5387
5592
|
// src/version.ts
|
|
5388
|
-
var SDK_VERSION = "4.
|
|
5593
|
+
var SDK_VERSION = "4.5.1";
|
|
5389
5594
|
var USER_AGENT = `blockrun-ts/${SDK_VERSION}`;
|
|
5390
5595
|
|
|
5391
5596
|
// src/client.ts
|
|
@@ -5492,7 +5697,7 @@ var LLMClient = class _LLMClient {
|
|
|
5492
5697
|
/**
|
|
5493
5698
|
* Simple 1-line chat interface.
|
|
5494
5699
|
*
|
|
5495
|
-
* @param model - Model ID (e.g., 'openai/gpt-5.2', 'anthropic/claude-sonnet-
|
|
5700
|
+
* @param model - Model ID (e.g., 'openai/gpt-5.2', 'anthropic/claude-sonnet-5.5')
|
|
5496
5701
|
* @param prompt - User message
|
|
5497
5702
|
* @param options - Optional chat parameters
|
|
5498
5703
|
* @returns Assistant's response text
|
|
@@ -5563,9 +5768,9 @@ var LLMClient = class _LLMClient {
|
|
|
5563
5768
|
* ```ts
|
|
5564
5769
|
* const result = await client.smartChat('What is 2+2?');
|
|
5565
5770
|
* console.log(result.response); // '4'
|
|
5566
|
-
* console.log(result.model); // 'google/gemini-3.
|
|
5771
|
+
* console.log(result.model); // 'google/gemini-3.6-flash'
|
|
5567
5772
|
* console.log(result.routing.method); // 'portfolio'
|
|
5568
|
-
* console.log(result.routing.savings); // 0.
|
|
5773
|
+
* console.log(result.routing.savings); // 0.84 (84% savings)
|
|
5569
5774
|
* ```
|
|
5570
5775
|
*
|
|
5571
5776
|
* @example With routing profile
|
|
@@ -9858,7 +10063,7 @@ var BlockrunClient = class {
|
|
|
9858
10063
|
*
|
|
9859
10064
|
* Example — streaming chat:
|
|
9860
10065
|
* for await (const chunk of br.stream<ChatChunk>("/v1/chat/completions", {
|
|
9861
|
-
* model: "anthropic/claude-sonnet-
|
|
10066
|
+
* model: "anthropic/claude-sonnet-5.5",
|
|
9862
10067
|
* messages: [{ role: "user", content: "Hi" }],
|
|
9863
10068
|
* stream: true,
|
|
9864
10069
|
* })) {
|