@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.js
CHANGED
|
@@ -641,7 +641,7 @@ function buildDecisionsBody(request) {
|
|
|
641
641
|
// src/client.ts
|
|
642
642
|
import { privateKeyToAccount } from "viem/accounts";
|
|
643
643
|
|
|
644
|
-
// node_modules/.pnpm/@blockrun+router-core@https+++codeload.github.com+BlockRunAI+router-core+tar.gz+
|
|
644
|
+
// 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
|
|
645
645
|
var UNSEGMENTED_SCRIPT = /[-ۿ -ヿ㐀-䶿一-鿿가-豈--]/;
|
|
646
646
|
var WORD_CHAR = /[\p{L}\p{N}]/u;
|
|
647
647
|
var ASCII_PHRASE = /^[a-z0-9' -]+$/;
|
|
@@ -1210,7 +1210,12 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1210
1210
|
affinityFloorGap: { auto: 0.1, eco: 0.22, premium: 0.05 }
|
|
1211
1211
|
},
|
|
1212
1212
|
classifier: {
|
|
1213
|
-
|
|
1213
|
+
// gemini-2.5-flash until Google retired it on 2026-12-01 (the gateways
|
|
1214
|
+
// redirect it to 3.5 Flash-Lite). Nothing in this package or ClawRouter
|
|
1215
|
+
// reads llmModel today. Before wiring it, note that 3.5 Flash-Lite always
|
|
1216
|
+
// thinks (it rejects a thinking budget of 0), so llmMaxTokens 10 may be
|
|
1217
|
+
// spent on reasoning before any label is emitted.
|
|
1218
|
+
llmModel: "google/gemini-3.5-flash-lite",
|
|
1214
1219
|
llmMaxTokens: 10,
|
|
1215
1220
|
llmTemperature: 0,
|
|
1216
1221
|
promptTruncationChars: 500,
|
|
@@ -2251,24 +2256,84 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2251
2256
|
//
|
|
2252
2257
|
// Latency figures in comments are the 2026-08-29 gateway probe
|
|
2253
2258
|
// (model-profiles.generated.json); prices are the catalog list.
|
|
2259
|
+
//
|
|
2260
|
+
// Retirements 2026-11-24 (owner-approved; the gateways redirect each id
|
|
2261
|
+
// before pricing, so a stale name here is a silent model swap, not an error):
|
|
2262
|
+
// - google/gemini-3.5-flash -> google/gemini-3.6-flash. Google has served
|
|
2263
|
+
// 3.6 Flash under the 3.5 name since ~2026-10-10. Each 3.5 rung now names
|
|
2264
|
+
// 3.6 at the same position; where 3.6 already sat in the same chain, the
|
|
2265
|
+
// later of the two is dropped, so the order of the models actually served
|
|
2266
|
+
// is unchanged. 3.6 inherits 3.5's affinity values, carried, not measured
|
|
2267
|
+
// (portfolio.ts).
|
|
2268
|
+
// - openai/o4-mini (and o1, o3-mini) -> openai/gpt-5.4-mini, at the same
|
|
2269
|
+
// position. Dead at OpenAI since 2026-10-23 and on Azure since 2026-11-19.
|
|
2270
|
+
//
|
|
2271
|
+
// Retirements 2026-12-01 (Google retires Gemini 2.5; the gateways redirect):
|
|
2272
|
+
// - google/gemini-2.5-flash -> google/gemini-3.5-flash-lite (same
|
|
2273
|
+
// $0.30/$2.50), in place, with the same dedupe rule. 3.5 Flash-Lite has
|
|
2274
|
+
// no vision tag where 2.5 Flash had one, so a SIMPLE vision turn now
|
|
2275
|
+
// falls past it to the next vision-capable rung instead of reaching a
|
|
2276
|
+
// redirected model that would drop the image.
|
|
2277
|
+
// - google/gemini-2.5-pro -> google/gemini-3.8-flash ($0.75/$3.75), in
|
|
2278
|
+
// place.
|
|
2279
|
+
//
|
|
2280
|
+
// Retirements 2026-12-11 (OpenAI shuts down o3, gpt-5-mini and gpt-5-nano —
|
|
2281
|
+
// developers.openai.com/api/docs/deprecations, notice 2026-06-11; the
|
|
2282
|
+
// gateways redirect each and quote the successor):
|
|
2283
|
+
// - openai/o3 -> openai/gpt-5.4-mini ($2/$8 -> $0.75/$4.50). Both o3 rungs
|
|
2284
|
+
// (auto and premium REASONING) sat directly behind gpt-5.4-mini, so they
|
|
2285
|
+
// are dropped by the dedupe rule; the order actually served is unchanged.
|
|
2286
|
+
// - openai/gpt-5-mini -> openai/gpt-5.6-luna ($0.25/$2 -> $0.20/$1.20), in
|
|
2287
|
+
// place as the agentic MEDIUM primary. Luna inherits gpt-5-mini's
|
|
2288
|
+
// affinity values, CARRIED, not measured (portfolio.ts) — gpt-5-mini is a
|
|
2289
|
+
// reasoning model and luna runs without reasoning, so those values are a
|
|
2290
|
+
// placeholder until a Terminal-Bench/tau2 run on luna.
|
|
2291
|
+
// - openai/gpt-5-nano is NOT redirected (owner decision 2026-11-24): the
|
|
2292
|
+
// gateways keep serving it from Azure at its own $0.05/$0.40 until
|
|
2293
|
+
// 2027-02-09. It is hidden and in no chain, and none is added.
|
|
2294
|
+
//
|
|
2295
|
+
// Generation refresh 2026-11-27 (owner-approved). Nothing below is retired
|
|
2296
|
+
// at the gateway — every id it replaces still answers on both chains. The
|
|
2297
|
+
// rule: a fallback rung, or a primary with no calibration behind it, moves
|
|
2298
|
+
// to the same family's newer model when that model costs the same or less
|
|
2299
|
+
// and is tool-verified. Primaries carrying measured trajectory evidence
|
|
2300
|
+
// (Sonnet 5, GPT-4o Mini, Gemini 3.1 Pro's long-context lead) stay until a
|
|
2301
|
+
// calibration run says otherwise, and so do the measured values in
|
|
2302
|
+
// portfolio.ts (BFCL parallel, GPQA, MGSM, BrowseComp, tau2, Terminal-Bench)
|
|
2303
|
+
// and the evidence pools that reach them.
|
|
2304
|
+
// - claude-opus-5 / -4.8 / -4.7 ($5/$25) -> claude-opus-5.5 ($4/$20), with
|
|
2305
|
+
// opus-5 kept directly behind it as the in-family hot swap; 4.8 and 4.7
|
|
2306
|
+
// leave the chains.
|
|
2307
|
+
// - claude-sonnet-4.6 ($3/$15) -> claude-sonnet-5.5 ($2/$10), in place.
|
|
2308
|
+
// - grok-4.5 -> grok-4.7 (both $2/$6), in place.
|
|
2309
|
+
// - gpt-5.4-nano ($0.20/$1.25) -> gpt-6-luna ($0.10/$0.50), in place.
|
|
2310
|
+
// - gpt-5.5 ($5/$30) and gpt-5.4 ($2.50/$15), adjacent in three COMPLEX
|
|
2311
|
+
// chains -> one gpt-6.2-sol rung ($2/$10; tool call, 3/3 completions,
|
|
2312
|
+
// 6.3s mean on the 2026-11-27 probe). gpt-5.6-terra stays where it is.
|
|
2313
|
+
// - premiumTiers.COMPLEX primary: claude-fable-5 ($10/$50) ->
|
|
2314
|
+
// claude-opus-5.5 ($4/$20), owner decision. Fable 5.2 ($8/$40) is served
|
|
2315
|
+
// on Base only (Solana answers 503 and does not list it), so it is in no
|
|
2316
|
+
// chain; Fable 5 leaves the chains.
|
|
2254
2317
|
// Auto (balanced) tier configs - current default smart routing
|
|
2255
2318
|
tiers: {
|
|
2256
2319
|
SIMPLE: {
|
|
2257
|
-
|
|
2258
|
-
//
|
|
2320
|
+
// Was google/gemini-2.5-flash (60% retention, best, in the 2026-03 run)
|
|
2321
|
+
// until its 2026-12-01 retirement. 3.5 Flash-Lite is what the gateways
|
|
2322
|
+
// serve under that name from then on; it was this chain's second
|
|
2323
|
+
// fallback and is dropped there.
|
|
2324
|
+
primary: "google/gemini-3.5-flash-lite",
|
|
2325
|
+
// $0.30/$2.50, 1M ctx, thinking mode, no vision
|
|
2259
2326
|
fallback: [
|
|
2260
2327
|
"google/gemini-3-flash-preview",
|
|
2261
2328
|
// $0.50/$3 — GPQA 5/6 in the 2026-07 calibration
|
|
2262
|
-
"google/gemini-3.5-flash-lite",
|
|
2263
|
-
// $0.30/$2.50, 1M ctx, thinking mode — same price as 2.5 Flash, newer generation
|
|
2264
2329
|
"deepseek/deepseek-chat",
|
|
2265
2330
|
// $0.14/$0.28, 1M ctx
|
|
2266
2331
|
"google/gemini-3.1-flash-lite",
|
|
2267
2332
|
// $0.25/$1.50, 1M ctx
|
|
2268
2333
|
"openai/gpt-5.6-luna",
|
|
2269
2334
|
// $0.20/$1.20, 1M ctx — GPT-5.6 cost tier (cut 2026-07-30)
|
|
2270
|
-
"openai/gpt-
|
|
2271
|
-
// $0.
|
|
2335
|
+
"openai/gpt-6-luna",
|
|
2336
|
+
// $0.10/$0.50, 1M ctx, vision + tools — gpt-5.4-nano's successor (2026-11-27)
|
|
2272
2337
|
"google/gemini-2.5-flash-lite",
|
|
2273
2338
|
// $0.10/$0.40
|
|
2274
2339
|
"nvidia/nemotron-3.5-lightning"
|
|
@@ -2276,13 +2341,13 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2276
2341
|
]
|
|
2277
2342
|
},
|
|
2278
2343
|
MEDIUM: {
|
|
2279
|
-
// Was moonshot/kimi-k2.7 (hidden 2026-08)
|
|
2280
|
-
// calibrated successor
|
|
2281
|
-
|
|
2282
|
-
//
|
|
2344
|
+
// Was moonshot/kimi-k2.7 (hidden 2026-08), then Gemini 3.5 Flash — the
|
|
2345
|
+
// calibrated successor (MGSM 5/5, GPQA 4/6, extraction band) — until its
|
|
2346
|
+
// 2026-11-24 retirement. 3.6 Flash is what Google served under that name
|
|
2347
|
+
// since ~10-10; it was this chain's first fallback and is dropped there.
|
|
2348
|
+
primary: "google/gemini-3.6-flash",
|
|
2349
|
+
// $0.75/$3.75, 1M ctx, vision + tools — 3.5's affinity, carried
|
|
2283
2350
|
fallback: [
|
|
2284
|
-
"google/gemini-3.6-flash",
|
|
2285
|
-
// $1.50/$7.50 — newest Flash, output 17% cheaper than 3.5; awaiting calibration
|
|
2286
2351
|
"zai/glm-5.3-flash",
|
|
2287
2352
|
// $0.15/$0.50, 1M ctx, vision + tools verified live 2026-08-27
|
|
2288
2353
|
"openai/gpt-5.6-terra",
|
|
@@ -2291,8 +2356,8 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2291
2356
|
// $0.50/$3
|
|
2292
2357
|
"deepseek/deepseek-chat",
|
|
2293
2358
|
// $0.14/$0.28
|
|
2294
|
-
"google/gemini-
|
|
2295
|
-
// $0.30/$2.50
|
|
2359
|
+
"google/gemini-3.5-flash-lite",
|
|
2360
|
+
// $0.30/$2.50 — 2.5 Flash's successor (retired 2026-12-01)
|
|
2296
2361
|
"minimax/minimax-m3",
|
|
2297
2362
|
// $0.30/$1.20, 1M ctx
|
|
2298
2363
|
"google/gemini-3.1-flash-lite",
|
|
@@ -2308,33 +2373,29 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2308
2373
|
// $2/$12 — proven long-context flagship (portfolio.ts long_context lead)
|
|
2309
2374
|
fallback: [
|
|
2310
2375
|
"google/gemini-3.6-flash",
|
|
2311
|
-
// $
|
|
2312
|
-
"google/gemini-3.5-flash",
|
|
2313
|
-
// $1.50/$9 — calibrated
|
|
2376
|
+
// $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)
|
|
2314
2377
|
"anthropic/claude-sonnet-5",
|
|
2315
|
-
// $
|
|
2316
|
-
"xai/grok-4.
|
|
2317
|
-
// $2
|
|
2318
|
-
"google/gemini-
|
|
2319
|
-
// $
|
|
2320
|
-
"anthropic/claude-sonnet-
|
|
2321
|
-
// $
|
|
2378
|
+
// $2/$10 — near-Opus quality, tau2 + Terminal-Bench calibrated
|
|
2379
|
+
"xai/grok-4.7",
|
|
2380
|
+
// $2/$6 — 503-resistant, independent infra (grok-4.5's successor, 2026-11-27)
|
|
2381
|
+
"google/gemini-3.8-flash",
|
|
2382
|
+
// $0.75/$3.75 — 2.5 Pro's successor (retired 2026-12-01)
|
|
2383
|
+
"anthropic/claude-sonnet-5.5",
|
|
2384
|
+
// $2/$10 — sonnet-4.6's successor (2026-11-27)
|
|
2322
2385
|
"openai/gpt-5.6-terra",
|
|
2323
2386
|
// $2/$12 — GPT-5.6 balanced tier (Sol excluded: #202)
|
|
2324
|
-
"openai/gpt-
|
|
2325
|
-
// $5/$30
|
|
2326
|
-
"openai/gpt-5.4",
|
|
2327
|
-
// $2.50/$15 — previous flagship, benchmarked
|
|
2387
|
+
"openai/gpt-6.2-sol",
|
|
2388
|
+
// $2/$10, vision + tools (probed 2026-11-27) — replaces gpt-5.5 ($5/$30) and gpt-5.4 ($2.50/$15)
|
|
2328
2389
|
"zai/glm-5.3",
|
|
2329
2390
|
// $1.40/$4.40, 1M ctx, always-on thinking — verified live 2026-08-19
|
|
2330
|
-
"moonshot/kimi-k3",
|
|
2331
|
-
// $
|
|
2391
|
+
"moonshot/kimi-k3.1-pro",
|
|
2392
|
+
// $2/$10, 1M ctx — Moonshot flagship (K3 successor)
|
|
2332
2393
|
"deepseek/deepseek-v4-pro",
|
|
2333
|
-
// $
|
|
2394
|
+
// $1.32/$3.96 — strongest open-weight reasoner
|
|
2334
2395
|
"deepseek/deepseek-chat",
|
|
2335
2396
|
// $0.14/$0.28 — cheap last resort
|
|
2336
|
-
"google/gemini-
|
|
2337
|
-
// $0.30/$2.50
|
|
2397
|
+
"google/gemini-3.5-flash-lite"
|
|
2398
|
+
// $0.30/$2.50 — 2.5 Flash's successor (retired 2026-12-01)
|
|
2338
2399
|
]
|
|
2339
2400
|
},
|
|
2340
2401
|
REASONING: {
|
|
@@ -2344,17 +2405,15 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2344
2405
|
// $0.14/$0.28, 1M ctx
|
|
2345
2406
|
fallback: [
|
|
2346
2407
|
"deepseek/deepseek-v4-pro",
|
|
2347
|
-
// $
|
|
2408
|
+
// $1.32/$3.96 — calibrated reasoning band 0.95
|
|
2348
2409
|
"xai/grok-4.3",
|
|
2349
|
-
// $1.50
|
|
2410
|
+
// $1.25/$2.50, 1M ctx — xAI reasoning model, vision
|
|
2350
2411
|
"qwen/qwen3.7-plus",
|
|
2351
2412
|
// $0.32/$1.28, 1M ctx — reasoning; needs a generous max_tokens (thinking is billed)
|
|
2352
|
-
"google/gemini-3.
|
|
2353
|
-
// $
|
|
2354
|
-
"openai/
|
|
2355
|
-
// $
|
|
2356
|
-
"openai/o3"
|
|
2357
|
-
// $2/$8
|
|
2413
|
+
"google/gemini-3.6-flash",
|
|
2414
|
+
// $0.75/$3.75 — 3.5 Flash's successor (MGSM 5/5 on 3.5, carried)
|
|
2415
|
+
"openai/gpt-5.4-mini"
|
|
2416
|
+
// $0.75/$4.50 — o4-mini's and o3's successor (retired 2026-11-24 and 2026-12-11; o3 was the next rung)
|
|
2358
2417
|
]
|
|
2359
2418
|
}
|
|
2360
2419
|
},
|
|
@@ -2385,8 +2444,8 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2385
2444
|
// $0.15/$0.50, 1M ctx, vision + tools
|
|
2386
2445
|
"openai/gpt-5.6-luna",
|
|
2387
2446
|
// $0.20/$1.20, 1M ctx
|
|
2388
|
-
"openai/gpt-
|
|
2389
|
-
// $0.
|
|
2447
|
+
"openai/gpt-6-luna",
|
|
2448
|
+
// $0.10/$0.50 — gpt-5.4-nano's successor (2026-11-27)
|
|
2390
2449
|
"google/gemini-3.1-flash-lite"
|
|
2391
2450
|
// $0.25/$1.50
|
|
2392
2451
|
]
|
|
@@ -2401,12 +2460,12 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2401
2460
|
// $0.25/$1.50
|
|
2402
2461
|
"openai/gpt-5.6-luna",
|
|
2403
2462
|
// $0.20/$1.20
|
|
2404
|
-
"openai/gpt-
|
|
2405
|
-
// $0.
|
|
2463
|
+
"openai/gpt-6-luna",
|
|
2464
|
+
// $0.10/$0.50 — gpt-5.4-nano's successor (2026-11-27)
|
|
2406
2465
|
"google/gemini-2.5-flash-lite",
|
|
2407
2466
|
// $0.10/$0.40
|
|
2408
|
-
"google/gemini-
|
|
2409
|
-
// $0.30/$2.50
|
|
2467
|
+
"google/gemini-3.5-flash-lite"
|
|
2468
|
+
// $0.30/$2.50 — 2.5 Flash's successor (retired 2026-12-01)
|
|
2410
2469
|
]
|
|
2411
2470
|
},
|
|
2412
2471
|
COMPLEX: {
|
|
@@ -2418,11 +2477,11 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2418
2477
|
"minimax/minimax-m3",
|
|
2419
2478
|
// $0.30/$1.20, 1M ctx
|
|
2420
2479
|
"deepseek/deepseek-v4-pro",
|
|
2421
|
-
// $
|
|
2480
|
+
// $1.32/$3.96
|
|
2422
2481
|
"google/gemini-3.1-flash-lite",
|
|
2423
2482
|
// $0.25/$1.50
|
|
2424
|
-
"google/gemini-
|
|
2425
|
-
// $0.30/$2.50
|
|
2483
|
+
"google/gemini-3.5-flash-lite"
|
|
2484
|
+
// $0.30/$2.50 — 2.5 Flash's successor (retired 2026-12-01)
|
|
2426
2485
|
]
|
|
2427
2486
|
},
|
|
2428
2487
|
REASONING: {
|
|
@@ -2430,7 +2489,7 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2430
2489
|
// $0.14/$0.28, 1M ctx — cheapest listed reasoner
|
|
2431
2490
|
fallback: [
|
|
2432
2491
|
"deepseek/deepseek-v4-pro",
|
|
2433
|
-
// $
|
|
2492
|
+
// $1.32/$3.96
|
|
2434
2493
|
"qwen/qwen3.7-plus",
|
|
2435
2494
|
// $0.32/$1.28 — reasoning
|
|
2436
2495
|
"minimax/minimax-m3",
|
|
@@ -2441,23 +2500,21 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2441
2500
|
}
|
|
2442
2501
|
},
|
|
2443
2502
|
// Premium tier configs - best quality (blockrun/premium)
|
|
2444
|
-
// codex=complex coding, flash=simple coding, sonnet=reasoning/instructions,
|
|
2503
|
+
// codex=complex coding, flash=simple coding, sonnet=reasoning/instructions, opus=architecture/PM/audits
|
|
2445
2504
|
premiumTiers: {
|
|
2446
2505
|
SIMPLE: {
|
|
2447
|
-
// Was moonshot/kimi-k2.7 (hidden 2026-08).
|
|
2448
|
-
|
|
2449
|
-
//
|
|
2506
|
+
// Was moonshot/kimi-k2.7 (hidden 2026-08), then Gemini 3.5 Flash until
|
|
2507
|
+
// its 2026-11-24 retirement; 3.6 Flash was the first fallback and is
|
|
2508
|
+
// dropped there.
|
|
2509
|
+
primary: "google/gemini-3.6-flash",
|
|
2510
|
+
// $0.75/$3.75, 1M ctx, vision + tools — 3.5's affinity, carried
|
|
2450
2511
|
fallback: [
|
|
2451
|
-
"google/gemini-3.6-flash",
|
|
2452
|
-
// $1.50/$7.50 — newest Flash
|
|
2453
2512
|
"anthropic/claude-haiku-4.5",
|
|
2454
2513
|
// $1/$5
|
|
2455
2514
|
"zai/glm-5.3",
|
|
2456
2515
|
// $1.40/$4.40, 1M ctx
|
|
2457
|
-
"google/gemini-2.5-flash",
|
|
2458
|
-
// $0.30/$2.50
|
|
2459
2516
|
"google/gemini-3.5-flash-lite",
|
|
2460
|
-
// $0.30/$2.50
|
|
2517
|
+
// $0.30/$2.50 — written where 2.5 Flash sat (retired 2026-12-01); the duplicate after it is dropped
|
|
2461
2518
|
"deepseek/deepseek-chat"
|
|
2462
2519
|
// $0.14/$0.28
|
|
2463
2520
|
]
|
|
@@ -2467,54 +2524,49 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2467
2524
|
// $1.75/$14 - 400K context, 128K output — code_edit/debug lead (portfolio.ts)
|
|
2468
2525
|
fallback: [
|
|
2469
2526
|
"anthropic/claude-sonnet-5",
|
|
2470
|
-
// $
|
|
2471
|
-
"moonshot/kimi-k3",
|
|
2472
|
-
// $
|
|
2527
|
+
// $2/$10 — code_agent band 0.98
|
|
2528
|
+
"moonshot/kimi-k3.1-pro",
|
|
2529
|
+
// $2/$10, 1M ctx — Moonshot flagship
|
|
2473
2530
|
"zai/glm-5.3",
|
|
2474
2531
|
// $1.40/$4.40 — long-horizon coding
|
|
2475
2532
|
"google/gemini-3.6-flash",
|
|
2476
|
-
// $
|
|
2477
|
-
"google/gemini-3.
|
|
2478
|
-
// $
|
|
2479
|
-
"
|
|
2480
|
-
// $
|
|
2481
|
-
"
|
|
2482
|
-
// $2.
|
|
2483
|
-
"anthropic/claude-sonnet-4.6",
|
|
2484
|
-
// $3/$15
|
|
2533
|
+
// $0.75/$3.75 (3.5 Flash, the next rung, retired 2026-11-24)
|
|
2534
|
+
"google/gemini-3.8-flash",
|
|
2535
|
+
// $0.75/$3.75 — 2.5 Pro's successor (retired 2026-12-01)
|
|
2536
|
+
"xai/grok-4.7",
|
|
2537
|
+
// $2/$6 — grok-4.5's successor (2026-11-27)
|
|
2538
|
+
"anthropic/claude-sonnet-5.5",
|
|
2539
|
+
// $2/$10 — sonnet-4.6's successor (2026-11-27)
|
|
2485
2540
|
"openai/gpt-5.6-terra"
|
|
2486
2541
|
// $2/$12
|
|
2487
2542
|
]
|
|
2488
2543
|
},
|
|
2489
2544
|
COMPLEX: {
|
|
2490
2545
|
// fable-5 was promoted here 2026-06-11, force-reverted 2026-06-13 when Anthropic
|
|
2491
|
-
// withdrew the offer, and restored 2026-07-14
|
|
2492
|
-
|
|
2493
|
-
//
|
|
2546
|
+
// withdrew the offer, and restored 2026-07-14 when BlockRun relisted it.
|
|
2547
|
+
// 2026-11-27 (owner decision): Opus 5.5 takes the slot. Fable 5.2 is
|
|
2548
|
+
// Base-only (Solana 503s it), and Fable 5 / 5.1 cost 2.5x Opus 5.5.
|
|
2549
|
+
primary: "anthropic/claude-opus-5.5",
|
|
2550
|
+
// $4/$20, 1M ctx, adaptive thinking, vision + tools (probed 2026-11-27)
|
|
2494
2551
|
// Fallback chain de-Gemini'd 2026-04-22: when Anthropic 503s, Gemini is
|
|
2495
2552
|
// also prone to "high demand" 503s (correlated failure — everyone falls
|
|
2496
2553
|
// back to Google at the same time). Prefer in-family → xAI → Moonshot →
|
|
2497
2554
|
// OpenAI flagship → Z.AI → DeepSeek → NVIDIA free instead.
|
|
2498
2555
|
fallback: [
|
|
2499
2556
|
"anthropic/claude-opus-5",
|
|
2500
|
-
// in-family hot swap first (
|
|
2501
|
-
"anthropic/claude-opus-4.8",
|
|
2502
|
-
// in-family hot swap (identical cost to 5)
|
|
2503
|
-
"anthropic/claude-opus-4.7",
|
|
2504
|
-
// in-family hot swap (identical cost to 4.8)
|
|
2557
|
+
// in-family hot swap first ($5/$25, 1M ctx + adaptive thinking); 4.8 and 4.7 left 2026-11-27
|
|
2505
2558
|
"anthropic/claude-sonnet-5",
|
|
2506
2559
|
// Sonnet-tier drop-down, near-Opus quality
|
|
2507
|
-
"anthropic/claude-sonnet-
|
|
2508
|
-
|
|
2560
|
+
"anthropic/claude-sonnet-5.5",
|
|
2561
|
+
// $2/$10 — sonnet-4.6's successor (2026-11-27)
|
|
2562
|
+
"xai/grok-4.7",
|
|
2509
2563
|
// xAI flagship — 503-resistant, direct-xAI SKU
|
|
2510
|
-
"moonshot/kimi-k3",
|
|
2564
|
+
"moonshot/kimi-k3.1-pro",
|
|
2511
2565
|
// Moonshot flagship, independent infra
|
|
2512
2566
|
"openai/gpt-5.6-terra",
|
|
2513
2567
|
// GPT-5.6 balanced tier — stable (Sol excluded: #202)
|
|
2514
|
-
"openai/gpt-
|
|
2515
|
-
//
|
|
2516
|
-
"openai/gpt-5.4",
|
|
2517
|
-
// Previous flagship (slow but stable, benchmarked at 6,213ms)
|
|
2568
|
+
"openai/gpt-6.2-sol",
|
|
2569
|
+
// OpenAI flagship tier, $2/$10 — replaces gpt-5.5 and gpt-5.4 (2026-11-27)
|
|
2518
2570
|
"openai/gpt-5.3-codex",
|
|
2519
2571
|
"zai/glm-5.3",
|
|
2520
2572
|
// Z.AI flagship, 1M ctx
|
|
@@ -2530,26 +2582,22 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2530
2582
|
// Sonnet 5 promoted over Sonnet 4.6 (same price; reasoning band 0.98 for both,
|
|
2531
2583
|
// plus Sonnet 5's tau2/BrowseComp trajectory evidence).
|
|
2532
2584
|
primary: "anthropic/claude-sonnet-5",
|
|
2533
|
-
// $
|
|
2585
|
+
// $2/$10, 1M ctx, adaptive thinking
|
|
2534
2586
|
fallback: [
|
|
2535
|
-
"anthropic/claude-sonnet-
|
|
2536
|
-
// in-family hot swap — same cost
|
|
2587
|
+
"anthropic/claude-sonnet-5.5",
|
|
2588
|
+
// in-family hot swap — same cost (sonnet-4.6's successor, 2026-11-27)
|
|
2589
|
+
"anthropic/claude-opus-5.5",
|
|
2590
|
+
// Newest flagship Opus w/ adaptive thinking, $4/$20
|
|
2537
2591
|
"anthropic/claude-opus-5",
|
|
2538
|
-
//
|
|
2539
|
-
"
|
|
2540
|
-
//
|
|
2541
|
-
"anthropic/claude-opus-4.7",
|
|
2542
|
-
// Flagship Opus w/ adaptive thinking
|
|
2543
|
-
"xai/grok-4.5",
|
|
2544
|
-
// reasoning band 0.94
|
|
2592
|
+
// Prior flagship Opus — in-family hot swap ($5/$25)
|
|
2593
|
+
"xai/grok-4.7",
|
|
2594
|
+
// reasoning band 0.94 (grok-4.5's prior, carried)
|
|
2545
2595
|
"deepseek/deepseek-v4-pro",
|
|
2546
2596
|
// reasoning band 0.95
|
|
2547
2597
|
"xai/grok-4.3",
|
|
2548
|
-
// $1.50
|
|
2549
|
-
"openai/
|
|
2550
|
-
// $
|
|
2551
|
-
"openai/o3"
|
|
2552
|
-
// $2/$8
|
|
2598
|
+
// $1.25/$2.50 — xAI reasoning model
|
|
2599
|
+
"openai/gpt-5.4-mini"
|
|
2600
|
+
// $0.75/$4.50 — o4-mini's and o3's successor (retired 2026-11-24 and 2026-12-11; o3 was the next rung)
|
|
2553
2601
|
]
|
|
2554
2602
|
}
|
|
2555
2603
|
},
|
|
@@ -2565,18 +2613,20 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2565
2613
|
// $0.15/$0.50 — tool calls verified live 2026-08-27
|
|
2566
2614
|
"anthropic/claude-haiku-4.5",
|
|
2567
2615
|
// $1/$5
|
|
2568
|
-
"google/gemini-
|
|
2569
|
-
// $0.30/$2.50
|
|
2616
|
+
"google/gemini-3.5-flash-lite"
|
|
2617
|
+
// $0.30/$2.50 — 2.5 Flash's successor (retired 2026-12-01)
|
|
2570
2618
|
]
|
|
2571
2619
|
},
|
|
2572
2620
|
MEDIUM: {
|
|
2573
|
-
// Was moonshot/kimi-k2.7 (hidden 2026-08)
|
|
2574
|
-
// Terminal-Bench and tau2 trajectory evidence in
|
|
2575
|
-
|
|
2576
|
-
//
|
|
2621
|
+
// Was moonshot/kimi-k2.7 (hidden 2026-08), then GPT-5 Mini — which
|
|
2622
|
+
// carries the Terminal-Bench and tau2 trajectory evidence in
|
|
2623
|
+
// portfolio.ts — until its 2026-12-11 retirement. GPT-5.6 Luna is what
|
|
2624
|
+
// the gateways serve under that name from then on.
|
|
2625
|
+
primary: "openai/gpt-5.6-luna",
|
|
2626
|
+
// $0.20/$1.20, 1M ctx, vision + tools — gpt-5-mini's affinity (4/7 Terminal-Bench, 5/6 tau2 airline), carried
|
|
2577
2627
|
fallback: [
|
|
2578
|
-
"google/gemini-3.
|
|
2579
|
-
// $
|
|
2628
|
+
"google/gemini-3.6-flash",
|
|
2629
|
+
// $0.75/$3.75 — tool_agent band 0.88 (3.5's, carried)
|
|
2580
2630
|
"zai/glm-5.3-flash",
|
|
2581
2631
|
// $0.15/$0.50 — tools verified
|
|
2582
2632
|
"openai/gpt-5.6-terra",
|
|
@@ -2587,37 +2637,33 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2587
2637
|
// $1/$5
|
|
2588
2638
|
"deepseek/deepseek-chat",
|
|
2589
2639
|
// $0.14/$0.28
|
|
2590
|
-
"moonshot/kimi-k3"
|
|
2591
|
-
// $
|
|
2640
|
+
"moonshot/kimi-k3.1-pro"
|
|
2641
|
+
// $2/$10 — tool_agent band 0.85
|
|
2592
2642
|
]
|
|
2593
2643
|
},
|
|
2594
2644
|
COMPLEX: {
|
|
2595
2645
|
// Sonnet 5 promoted over Sonnet 4.6: tau2 airline + retail reward 1.0,
|
|
2596
2646
|
// Terminal-Bench safety band lead (portfolio.ts).
|
|
2597
2647
|
primary: "anthropic/claude-sonnet-5",
|
|
2598
|
-
// $
|
|
2648
|
+
// $2/$10 — best agentic quality per trajectory evidence
|
|
2599
2649
|
// Fallback chain de-Gemini'd 2026-04-22: Gemini's "high demand" 503s
|
|
2600
2650
|
// correlate with Anthropic outages (everyone falls back together).
|
|
2601
2651
|
// Prefer 503-resistant providers first.
|
|
2602
2652
|
fallback: [
|
|
2603
|
-
"anthropic/claude-sonnet-
|
|
2604
|
-
// in-family hot swap — same cost
|
|
2653
|
+
"anthropic/claude-sonnet-5.5",
|
|
2654
|
+
// in-family hot swap — same cost (sonnet-4.6's successor, 2026-11-27)
|
|
2655
|
+
"anthropic/claude-opus-5.5",
|
|
2656
|
+
// Newest flagship Opus — in-family hot swap, $4/$20
|
|
2605
2657
|
"anthropic/claude-opus-5",
|
|
2606
|
-
//
|
|
2607
|
-
"
|
|
2608
|
-
// Prior flagship Opus — identical cost to 5
|
|
2609
|
-
"anthropic/claude-opus-4.7",
|
|
2610
|
-
// Flagship Opus — in-family hot swap
|
|
2611
|
-
"xai/grok-4.5",
|
|
2658
|
+
// Prior flagship Opus — in-family hot swap ($5/$25)
|
|
2659
|
+
"xai/grok-4.7",
|
|
2612
2660
|
// xAI flagship — strong tool use, independent infra
|
|
2613
|
-
"moonshot/kimi-k3",
|
|
2661
|
+
"moonshot/kimi-k3.1-pro",
|
|
2614
2662
|
// Moonshot flagship — independent infra
|
|
2615
2663
|
"openai/gpt-5.6-terra",
|
|
2616
2664
|
// GPT-5.6 balanced tier — stable (Sol excluded: #202)
|
|
2617
|
-
"openai/gpt-
|
|
2618
|
-
//
|
|
2619
|
-
"openai/gpt-5.4",
|
|
2620
|
-
// Previous flagship — reliable
|
|
2665
|
+
"openai/gpt-6.2-sol",
|
|
2666
|
+
// OpenAI flagship tier, $2/$10, tools verified — replaces gpt-5.5 and gpt-5.4 (2026-11-27)
|
|
2621
2667
|
"openai/gpt-5.3-codex",
|
|
2622
2668
|
// code_agent lead
|
|
2623
2669
|
"zai/glm-5.3",
|
|
@@ -2632,18 +2678,16 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
2632
2678
|
},
|
|
2633
2679
|
REASONING: {
|
|
2634
2680
|
primary: "anthropic/claude-sonnet-5",
|
|
2635
|
-
// $
|
|
2681
|
+
// $2/$10 — strong tool use + adaptive thinking
|
|
2636
2682
|
fallback: [
|
|
2637
|
-
"anthropic/claude-sonnet-
|
|
2638
|
-
// in-family hot swap — same cost
|
|
2683
|
+
"anthropic/claude-sonnet-5.5",
|
|
2684
|
+
// in-family hot swap — same cost (sonnet-4.6's successor, 2026-11-27)
|
|
2685
|
+
"anthropic/claude-opus-5.5",
|
|
2686
|
+
// Newest flagship Opus w/ adaptive thinking, $4/$20
|
|
2639
2687
|
"anthropic/claude-opus-5",
|
|
2640
|
-
//
|
|
2641
|
-
"
|
|
2642
|
-
//
|
|
2643
|
-
"anthropic/claude-opus-4.7",
|
|
2644
|
-
// Flagship Opus w/ adaptive thinking
|
|
2645
|
-
"xai/grok-4.5",
|
|
2646
|
-
// reasoning band 0.94
|
|
2688
|
+
// Prior flagship Opus — in-family hot swap ($5/$25)
|
|
2689
|
+
"xai/grok-4.7",
|
|
2690
|
+
// reasoning band 0.94 (grok-4.5's prior, carried)
|
|
2647
2691
|
"deepseek/deepseek-v4-pro",
|
|
2648
2692
|
// reasoning band 0.95
|
|
2649
2693
|
"deepseek/deepseek-reasoner"
|
|
@@ -2676,6 +2720,12 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
2676
2720
|
supportsTools: true,
|
|
2677
2721
|
supportsVision: true
|
|
2678
2722
|
},
|
|
2723
|
+
"anthropic/claude-fable-5.2": {
|
|
2724
|
+
contextWindow: 1e6,
|
|
2725
|
+
maxOutputTokens: 128e3,
|
|
2726
|
+
supportsTools: true,
|
|
2727
|
+
supportsVision: true
|
|
2728
|
+
},
|
|
2679
2729
|
"anthropic/claude-haiku-4.5": {
|
|
2680
2730
|
// 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.
|
|
2681
2731
|
contextWindow: 2e5,
|
|
@@ -2738,13 +2788,6 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
2738
2788
|
supportsTools: true,
|
|
2739
2789
|
supportsVision: true
|
|
2740
2790
|
},
|
|
2741
|
-
"cohere/north-mini-code": {
|
|
2742
|
-
// supportsTools: not probed — fails closed
|
|
2743
|
-
contextWindow: 256e3,
|
|
2744
|
-
maxOutputTokens: 16384,
|
|
2745
|
-
supportsTools: false,
|
|
2746
|
-
supportsVision: false
|
|
2747
|
-
},
|
|
2748
2791
|
"deepseek/deepseek-chat": {
|
|
2749
2792
|
// 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.
|
|
2750
2793
|
contextWindow: 1048576,
|
|
@@ -2814,12 +2857,6 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
2814
2857
|
supportsTools: true,
|
|
2815
2858
|
supportsVision: true
|
|
2816
2859
|
},
|
|
2817
|
-
"google/gemini-3.5-flash": {
|
|
2818
|
-
contextWindow: 1048576,
|
|
2819
|
-
maxOutputTokens: 65536,
|
|
2820
|
-
supportsTools: true,
|
|
2821
|
-
supportsVision: true
|
|
2822
|
-
},
|
|
2823
2860
|
"google/gemini-3.5-flash-lite": {
|
|
2824
2861
|
contextWindow: 1048576,
|
|
2825
2862
|
maxOutputTokens: 65536,
|
|
@@ -2839,10 +2876,27 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
2839
2876
|
supportsVision: true
|
|
2840
2877
|
},
|
|
2841
2878
|
"google/gemini-4-argon": {
|
|
2842
|
-
// supportsTools: not probed — fails closed
|
|
2843
2879
|
contextWindow: 1048576,
|
|
2844
2880
|
maxOutputTokens: 65536,
|
|
2845
|
-
supportsTools:
|
|
2881
|
+
supportsTools: true,
|
|
2882
|
+
supportsVision: true
|
|
2883
|
+
},
|
|
2884
|
+
"google/gemini-4-carbon": {
|
|
2885
|
+
contextWindow: 1048576,
|
|
2886
|
+
maxOutputTokens: 65536,
|
|
2887
|
+
supportsTools: true,
|
|
2888
|
+
supportsVision: true
|
|
2889
|
+
},
|
|
2890
|
+
"google/gemini-4-hydrogen": {
|
|
2891
|
+
contextWindow: 1048576,
|
|
2892
|
+
maxOutputTokens: 65536,
|
|
2893
|
+
supportsTools: true,
|
|
2894
|
+
supportsVision: true
|
|
2895
|
+
},
|
|
2896
|
+
"google/gemini-4-neon": {
|
|
2897
|
+
contextWindow: 1048576,
|
|
2898
|
+
maxOutputTokens: 65536,
|
|
2899
|
+
supportsTools: true,
|
|
2846
2900
|
supportsVision: true
|
|
2847
2901
|
},
|
|
2848
2902
|
"minimax/minimax-m2.7": {
|
|
@@ -2864,18 +2918,10 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
2864
2918
|
supportsTools: false,
|
|
2865
2919
|
supportsVision: true
|
|
2866
2920
|
},
|
|
2867
|
-
"moonshot/kimi-k3": {
|
|
2868
|
-
// absent from the 2026-11-08 listing but still routed — previous entry retained; probe before removing
|
|
2869
|
-
contextWindow: 1048576,
|
|
2870
|
-
maxOutputTokens: 65536,
|
|
2871
|
-
supportsTools: true,
|
|
2872
|
-
supportsVision: true
|
|
2873
|
-
},
|
|
2874
2921
|
"moonshot/kimi-k3.1-pro": {
|
|
2875
|
-
// supportsTools: not probed — fails closed
|
|
2876
2922
|
contextWindow: 1048576,
|
|
2877
2923
|
maxOutputTokens: 65536,
|
|
2878
|
-
supportsTools:
|
|
2924
|
+
supportsTools: true,
|
|
2879
2925
|
supportsVision: true
|
|
2880
2926
|
},
|
|
2881
2927
|
"nvidia/minimax-m3.1-flash": {
|
|
@@ -2914,10 +2960,9 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
2914
2960
|
supportsVision: false
|
|
2915
2961
|
},
|
|
2916
2962
|
"nvidia/nemotron-3.5-bolt": {
|
|
2917
|
-
// supportsTools: not probed — fails closed
|
|
2918
2963
|
contextWindow: 131072,
|
|
2919
2964
|
maxOutputTokens: 16384,
|
|
2920
|
-
supportsTools:
|
|
2965
|
+
supportsTools: true,
|
|
2921
2966
|
supportsVision: true
|
|
2922
2967
|
},
|
|
2923
2968
|
"nvidia/nemotron-3.5-lightning": {
|
|
@@ -3036,7 +3081,7 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3036
3081
|
"openai/gpt-5.6-luna-pro": {
|
|
3037
3082
|
contextWindow: 105e4,
|
|
3038
3083
|
maxOutputTokens: 128e3,
|
|
3039
|
-
supportsTools:
|
|
3084
|
+
supportsTools: true,
|
|
3040
3085
|
supportsVision: true
|
|
3041
3086
|
},
|
|
3042
3087
|
"openai/gpt-5.6-sol": {
|
|
@@ -3087,26 +3132,20 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3087
3132
|
supportsTools: true,
|
|
3088
3133
|
supportsVision: true
|
|
3089
3134
|
},
|
|
3090
|
-
"openai/
|
|
3091
|
-
contextWindow:
|
|
3092
|
-
maxOutputTokens:
|
|
3093
|
-
supportsTools: true,
|
|
3094
|
-
supportsVision: false
|
|
3095
|
-
},
|
|
3096
|
-
"openai/o3": {
|
|
3097
|
-
contextWindow: 2e5,
|
|
3098
|
-
maxOutputTokens: 1e5,
|
|
3135
|
+
"openai/gpt-6.2-astra": {
|
|
3136
|
+
contextWindow: 105e4,
|
|
3137
|
+
maxOutputTokens: 128e3,
|
|
3099
3138
|
supportsTools: true,
|
|
3100
|
-
supportsVision:
|
|
3139
|
+
supportsVision: true
|
|
3101
3140
|
},
|
|
3102
|
-
"openai/
|
|
3103
|
-
contextWindow:
|
|
3104
|
-
maxOutputTokens:
|
|
3141
|
+
"openai/gpt-6.2-sol": {
|
|
3142
|
+
contextWindow: 105e4,
|
|
3143
|
+
maxOutputTokens: 128e3,
|
|
3105
3144
|
supportsTools: true,
|
|
3106
|
-
supportsVision:
|
|
3145
|
+
supportsVision: true
|
|
3107
3146
|
},
|
|
3108
|
-
"openai/
|
|
3109
|
-
contextWindow:
|
|
3147
|
+
"openai/o3": {
|
|
3148
|
+
contextWindow: 2e5,
|
|
3110
3149
|
maxOutputTokens: 1e5,
|
|
3111
3150
|
supportsTools: true,
|
|
3112
3151
|
supportsVision: false
|
|
@@ -3119,10 +3158,9 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3119
3158
|
supportsVision: false
|
|
3120
3159
|
},
|
|
3121
3160
|
"poolside/laguna-xs-2.1": {
|
|
3122
|
-
// supportsTools: not probed — fails closed
|
|
3123
3161
|
contextWindow: 131072,
|
|
3124
3162
|
maxOutputTokens: 16384,
|
|
3125
|
-
supportsTools:
|
|
3163
|
+
supportsTools: true,
|
|
3126
3164
|
supportsVision: false
|
|
3127
3165
|
},
|
|
3128
3166
|
"qwen/qwen3.7-flash": {
|
|
@@ -3251,6 +3289,14 @@ var model_profiles_generated_default = {
|
|
|
3251
3289
|
errorRate: 0,
|
|
3252
3290
|
samples: 3
|
|
3253
3291
|
},
|
|
3292
|
+
"anthropic/claude-fable-5.2": {
|
|
3293
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3294
|
+
latencyMs: 5587.3,
|
|
3295
|
+
p95LatencyMs: 6206.1,
|
|
3296
|
+
outputTokensPerSecond: 92.94,
|
|
3297
|
+
errorRate: 0,
|
|
3298
|
+
samples: 3
|
|
3299
|
+
},
|
|
3254
3300
|
"anthropic/claude-haiku-4.5": {
|
|
3255
3301
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3256
3302
|
latencyMs: 3157.4,
|
|
@@ -3291,6 +3337,14 @@ var model_profiles_generated_default = {
|
|
|
3291
3337
|
errorRate: 0,
|
|
3292
3338
|
samples: 3
|
|
3293
3339
|
},
|
|
3340
|
+
"anthropic/claude-opus-5.5": {
|
|
3341
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3342
|
+
latencyMs: 6485.2,
|
|
3343
|
+
p95LatencyMs: 6951.2,
|
|
3344
|
+
outputTokensPerSecond: 79.15,
|
|
3345
|
+
errorRate: 0,
|
|
3346
|
+
samples: 3
|
|
3347
|
+
},
|
|
3294
3348
|
"anthropic/claude-sonnet-4.5": {
|
|
3295
3349
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3296
3350
|
latencyMs: 6330.4,
|
|
@@ -3315,6 +3369,14 @@ var model_profiles_generated_default = {
|
|
|
3315
3369
|
errorRate: 0,
|
|
3316
3370
|
samples: 3
|
|
3317
3371
|
},
|
|
3372
|
+
"anthropic/claude-sonnet-5.5": {
|
|
3373
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3374
|
+
latencyMs: 4770.2,
|
|
3375
|
+
p95LatencyMs: 5352,
|
|
3376
|
+
outputTokensPerSecond: 108.11,
|
|
3377
|
+
errorRate: 0,
|
|
3378
|
+
samples: 3
|
|
3379
|
+
},
|
|
3318
3380
|
"deepseek/deepseek-chat": {
|
|
3319
3381
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3320
3382
|
latencyMs: 4351.4,
|
|
@@ -3331,6 +3393,14 @@ var model_profiles_generated_default = {
|
|
|
3331
3393
|
errorRate: 0,
|
|
3332
3394
|
samples: 3
|
|
3333
3395
|
},
|
|
3396
|
+
"deepseek/deepseek-v4-flash-vision-exp": {
|
|
3397
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3398
|
+
latencyMs: 4078.4,
|
|
3399
|
+
p95LatencyMs: 4464.5,
|
|
3400
|
+
outputTokensPerSecond: 127,
|
|
3401
|
+
errorRate: 0,
|
|
3402
|
+
samples: 3
|
|
3403
|
+
},
|
|
3334
3404
|
"deepseek/deepseek-v4-pro": {
|
|
3335
3405
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3336
3406
|
latencyMs: 8781.2,
|
|
@@ -3419,6 +3489,38 @@ var model_profiles_generated_default = {
|
|
|
3419
3489
|
errorRate: 0,
|
|
3420
3490
|
samples: 3
|
|
3421
3491
|
},
|
|
3492
|
+
"google/gemini-4-argon": {
|
|
3493
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3494
|
+
latencyMs: 9565.7,
|
|
3495
|
+
p95LatencyMs: 10491.9,
|
|
3496
|
+
outputTokensPerSecond: 53.87,
|
|
3497
|
+
errorRate: 0,
|
|
3498
|
+
samples: 3
|
|
3499
|
+
},
|
|
3500
|
+
"google/gemini-4-carbon": {
|
|
3501
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3502
|
+
latencyMs: 10692.9,
|
|
3503
|
+
p95LatencyMs: 12609.2,
|
|
3504
|
+
outputTokensPerSecond: 48.61,
|
|
3505
|
+
errorRate: 0,
|
|
3506
|
+
samples: 3
|
|
3507
|
+
},
|
|
3508
|
+
"google/gemini-4-hydrogen": {
|
|
3509
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3510
|
+
latencyMs: 4520.7,
|
|
3511
|
+
p95LatencyMs: 4928.3,
|
|
3512
|
+
outputTokensPerSecond: 113.78,
|
|
3513
|
+
errorRate: 0,
|
|
3514
|
+
samples: 3
|
|
3515
|
+
},
|
|
3516
|
+
"google/gemini-4-neon": {
|
|
3517
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3518
|
+
latencyMs: 6728,
|
|
3519
|
+
p95LatencyMs: 8294.8,
|
|
3520
|
+
outputTokensPerSecond: 78,
|
|
3521
|
+
errorRate: 0,
|
|
3522
|
+
samples: 3
|
|
3523
|
+
},
|
|
3422
3524
|
"minimax/minimax-m2.7": {
|
|
3423
3525
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3424
3526
|
latencyMs: 8761.1,
|
|
@@ -3443,6 +3545,14 @@ var model_profiles_generated_default = {
|
|
|
3443
3545
|
errorRate: 0,
|
|
3444
3546
|
samples: 3
|
|
3445
3547
|
},
|
|
3548
|
+
"moonshot/kimi-k3.1-pro": {
|
|
3549
|
+
measuredAt: "2026-11-23T20:18:18Z",
|
|
3550
|
+
latencyMs: 9243.1,
|
|
3551
|
+
p95LatencyMs: 10504.1,
|
|
3552
|
+
outputTokensPerSecond: 55.89,
|
|
3553
|
+
errorRate: 0,
|
|
3554
|
+
samples: 3
|
|
3555
|
+
},
|
|
3446
3556
|
"nvidia/mistral-nemotron": {
|
|
3447
3557
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3448
3558
|
latencyMs: 7349.6,
|
|
@@ -3459,6 +3569,14 @@ var model_profiles_generated_default = {
|
|
|
3459
3569
|
errorRate: 0.3333,
|
|
3460
3570
|
samples: 3
|
|
3461
3571
|
},
|
|
3572
|
+
"nvidia/nemotron-3.5-bolt": {
|
|
3573
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3574
|
+
latencyMs: 5670.2,
|
|
3575
|
+
p95LatencyMs: 5688.6,
|
|
3576
|
+
outputTokensPerSecond: 90.3,
|
|
3577
|
+
errorRate: 0,
|
|
3578
|
+
samples: 3
|
|
3579
|
+
},
|
|
3462
3580
|
"nvidia/nemotron-nano-12b-v2-vl": {
|
|
3463
3581
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3464
3582
|
latencyMs: 5846.9,
|
|
@@ -3596,11 +3714,11 @@ var model_profiles_generated_default = {
|
|
|
3596
3714
|
samples: 3
|
|
3597
3715
|
},
|
|
3598
3716
|
"openai/gpt-5.6-luna-pro": {
|
|
3599
|
-
measuredAt: "2026-
|
|
3600
|
-
latencyMs:
|
|
3601
|
-
p95LatencyMs:
|
|
3602
|
-
outputTokensPerSecond:
|
|
3603
|
-
errorRate: 0
|
|
3717
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3718
|
+
latencyMs: 11046.8,
|
|
3719
|
+
p95LatencyMs: 12033.6,
|
|
3720
|
+
outputTokensPerSecond: 148.22,
|
|
3721
|
+
errorRate: 0,
|
|
3604
3722
|
samples: 3
|
|
3605
3723
|
},
|
|
3606
3724
|
"openai/gpt-5.6-sol": {
|
|
@@ -3643,6 +3761,22 @@ var model_profiles_generated_default = {
|
|
|
3643
3761
|
errorRate: 0,
|
|
3644
3762
|
samples: 3
|
|
3645
3763
|
},
|
|
3764
|
+
"openai/gpt-6.2-astra": {
|
|
3765
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3766
|
+
latencyMs: 7973.9,
|
|
3767
|
+
p95LatencyMs: 9532.7,
|
|
3768
|
+
outputTokensPerSecond: 47.21,
|
|
3769
|
+
errorRate: 0,
|
|
3770
|
+
samples: 3
|
|
3771
|
+
},
|
|
3772
|
+
"openai/gpt-6.2-sol": {
|
|
3773
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3774
|
+
latencyMs: 6310.9,
|
|
3775
|
+
p95LatencyMs: 6725.5,
|
|
3776
|
+
outputTokensPerSecond: 58.01,
|
|
3777
|
+
errorRate: 0,
|
|
3778
|
+
samples: 3
|
|
3779
|
+
},
|
|
3646
3780
|
"openai/o1": {
|
|
3647
3781
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3648
3782
|
latencyMs: 4324.9,
|
|
@@ -4090,20 +4224,20 @@ var NEUTRAL_AFFINITY = 0.68;
|
|
|
4090
4224
|
var TERMINAL_COMPLEX_HIGH = {
|
|
4091
4225
|
"claude-sonnet-5": 1,
|
|
4092
4226
|
"gpt-5.3-codex": 0.87,
|
|
4093
|
-
"gpt-5-
|
|
4094
|
-
"gemini-3.
|
|
4227
|
+
"gpt-5.6-luna": 0.78,
|
|
4228
|
+
"gemini-3.6-flash": 0.76
|
|
4095
4229
|
};
|
|
4096
4230
|
var WEB_RESEARCH_DEEP = {
|
|
4097
4231
|
"claude-sonnet-5": 1,
|
|
4098
|
-
"gpt-5-
|
|
4099
|
-
"gemini-3.
|
|
4232
|
+
"gpt-5.6-luna": 0.88,
|
|
4233
|
+
"gemini-3.6-flash": 0.84,
|
|
4100
4234
|
"claude-opus-5": 0.8,
|
|
4101
4235
|
"claude-opus-4.8": 0.78
|
|
4102
4236
|
};
|
|
4103
4237
|
var WEB_RESEARCH = {
|
|
4104
4238
|
"claude-sonnet-5": 1,
|
|
4105
|
-
"gpt-5-
|
|
4106
|
-
"gemini-3.
|
|
4239
|
+
"gpt-5.6-luna": 0.88,
|
|
4240
|
+
"gemini-3.6-flash": 0.86,
|
|
4107
4241
|
"claude-opus-5": 0.84,
|
|
4108
4242
|
"claude-opus-4.8": 0.82
|
|
4109
4243
|
};
|
|
@@ -4111,11 +4245,11 @@ var RETAIL_POLICY_EXCEPTION = {
|
|
|
4111
4245
|
"gpt-4.1": 1,
|
|
4112
4246
|
"claude-sonnet-5": 0.9,
|
|
4113
4247
|
"deepseek-v4-pro": 0.82,
|
|
4114
|
-
"gpt-5-
|
|
4248
|
+
"gpt-5.6-luna": 0.8,
|
|
4115
4249
|
"gpt-4o-mini": 0.76
|
|
4116
4250
|
};
|
|
4117
4251
|
var RETAIL_POLICY_EXCEPTION_SIMPLE = {
|
|
4118
|
-
"gpt-5-
|
|
4252
|
+
"gpt-5.6-luna": 1,
|
|
4119
4253
|
"gpt-4.1": 0.86,
|
|
4120
4254
|
"deepseek-v4-pro": 0.82,
|
|
4121
4255
|
"gpt-4o-mini": 0.8
|
|
@@ -4132,20 +4266,20 @@ var AFFINITY = {
|
|
|
4132
4266
|
codeAgent: {
|
|
4133
4267
|
"gpt-5.3-codex": 1,
|
|
4134
4268
|
"claude-sonnet-5": 0.98,
|
|
4135
|
-
"gpt-5-
|
|
4136
|
-
"gemini-3.
|
|
4137
|
-
"kimi-k3": 0.9,
|
|
4269
|
+
"gpt-5.6-luna": 0.96,
|
|
4270
|
+
"gemini-3.6-flash": 0.92,
|
|
4271
|
+
"kimi-k3.1-pro": 0.9,
|
|
4138
4272
|
"deepseek-v4-pro": 0.88,
|
|
4139
|
-
"glm-5.
|
|
4273
|
+
"glm-5.3": 0.88
|
|
4140
4274
|
},
|
|
4141
4275
|
// Seven official Terminal-Bench calibration trajectories favoured GPT-5 Mini
|
|
4142
4276
|
// over the prior dynamic choice. Codex/Sonnet are close fallbacks; actual
|
|
4143
4277
|
// request cost breaks the tie.
|
|
4144
4278
|
terminalTool: {
|
|
4145
|
-
"gpt-5-
|
|
4279
|
+
"gpt-5.6-luna": 1,
|
|
4146
4280
|
"gpt-5.3-codex": 0.98,
|
|
4147
4281
|
"claude-sonnet-5": 0.9,
|
|
4148
|
-
"gemini-3.
|
|
4282
|
+
"gemini-3.6-flash": 0.89
|
|
4149
4283
|
},
|
|
4150
4284
|
// Two complete agent observations on the public Terminal-Bench
|
|
4151
4285
|
// new-encrypt-command task ended in Codex repeating the same TerminalExec
|
|
@@ -4164,20 +4298,20 @@ var AFFINITY = {
|
|
|
4164
4298
|
// arguments. DeepSeek V4 Pro completed all three high-risk retail calibration
|
|
4165
4299
|
// trajectories (global-choice, cross-record, multi-write); Sonnet one.
|
|
4166
4300
|
retailStandard: {
|
|
4167
|
-
"gpt-5-
|
|
4301
|
+
"gpt-5.6-luna": 1,
|
|
4168
4302
|
"claude-sonnet-5": 0.88,
|
|
4169
|
-
"gemini-3.
|
|
4303
|
+
"gemini-3.6-flash": 0.82,
|
|
4170
4304
|
"gpt-5.3-codex": 0.81,
|
|
4171
|
-
"kimi-k3": 0.78,
|
|
4305
|
+
"kimi-k3.1-pro": 0.78,
|
|
4172
4306
|
"deepseek-v4-pro": 0.76
|
|
4173
4307
|
},
|
|
4174
4308
|
retailHigh: {
|
|
4175
4309
|
"deepseek-v4-pro": 1,
|
|
4176
4310
|
"claude-sonnet-5": 0.88,
|
|
4177
|
-
"gemini-3.
|
|
4311
|
+
"gemini-3.6-flash": 0.82,
|
|
4178
4312
|
"gpt-5.3-codex": 0.81,
|
|
4179
|
-
"kimi-k3": 0.78,
|
|
4180
|
-
"gpt-5-
|
|
4313
|
+
"kimi-k3.1-pro": 0.78,
|
|
4314
|
+
"gpt-5.6-luna": 0.76
|
|
4181
4315
|
},
|
|
4182
4316
|
// Standard airline workflows stay on GPT-5 Mini: six full-session
|
|
4183
4317
|
// development trajectories gave it the same 5/6 success as Sonnet at roughly
|
|
@@ -4191,14 +4325,14 @@ var AFFINITY = {
|
|
|
4191
4325
|
// roughly two orders of magnitude more on the long-tail case.
|
|
4192
4326
|
airlineComplex: {
|
|
4193
4327
|
"claude-sonnet-5": 1,
|
|
4194
|
-
"gpt-5-
|
|
4195
|
-
"gemini-3.
|
|
4328
|
+
"gpt-5.6-luna": 0.78,
|
|
4329
|
+
"gemini-3.6-flash": 0.76,
|
|
4196
4330
|
"deepseek-v4-pro": 0.74
|
|
4197
4331
|
},
|
|
4198
4332
|
airlineStandard: {
|
|
4199
|
-
"gpt-5-
|
|
4333
|
+
"gpt-5.6-luna": 1,
|
|
4200
4334
|
"claude-sonnet-5": 0.9,
|
|
4201
|
-
"gemini-3.
|
|
4335
|
+
"gemini-3.6-flash": 0.8,
|
|
4202
4336
|
"deepseek-v4-pro": 0.76
|
|
4203
4337
|
},
|
|
4204
4338
|
// Full-trajectory tau2 calibration (2026-07-28, official gpt-4.1 simulator):
|
|
@@ -4208,10 +4342,10 @@ var AFFINITY = {
|
|
|
4208
4342
|
// airline task.
|
|
4209
4343
|
toolAgent: {
|
|
4210
4344
|
"claude-sonnet-5": 1,
|
|
4211
|
-
"gemini-3.
|
|
4345
|
+
"gemini-3.6-flash": 0.88,
|
|
4212
4346
|
"gpt-5.3-codex": 0.87,
|
|
4213
|
-
"kimi-k3": 0.85,
|
|
4214
|
-
"gpt-5-
|
|
4347
|
+
"kimi-k3.1-pro": 0.85,
|
|
4348
|
+
"gpt-5.6-luna": 0.84,
|
|
4215
4349
|
"deepseek-v4-pro": 0.82
|
|
4216
4350
|
},
|
|
4217
4351
|
// Multi-file Terminal work is not equivalent to a one-turn parallel
|
|
@@ -4223,28 +4357,28 @@ var AFFINITY = {
|
|
|
4223
4357
|
"gpt-5.3-codex": 0.86
|
|
4224
4358
|
},
|
|
4225
4359
|
parallelTerminal: {
|
|
4226
|
-
"gpt-5-
|
|
4360
|
+
"gpt-5.6-luna": 1,
|
|
4227
4361
|
"gpt-5.3-codex": 0.98,
|
|
4228
4362
|
"claude-sonnet-5": 0.92,
|
|
4229
|
-
"gemini-3.
|
|
4363
|
+
"gemini-3.6-flash": 0.88
|
|
4230
4364
|
},
|
|
4231
4365
|
parallelRetail: {
|
|
4232
4366
|
"deepseek-v4-pro": 1,
|
|
4233
4367
|
"claude-sonnet-5": 0.88,
|
|
4234
4368
|
"claude-opus-4.8": 0.84,
|
|
4235
|
-
"gpt-5-
|
|
4236
|
-
"gemini-3.
|
|
4369
|
+
"gpt-5.6-luna": 0.78,
|
|
4370
|
+
"gemini-3.6-flash": 0.76
|
|
4237
4371
|
},
|
|
4238
4372
|
parallelAirlineComplex: {
|
|
4239
4373
|
"claude-sonnet-5": 1,
|
|
4240
|
-
"gpt-5-
|
|
4374
|
+
"gpt-5.6-luna": 0.78,
|
|
4241
4375
|
"claude-opus-4.8": 0.76,
|
|
4242
|
-
"gemini-3.
|
|
4376
|
+
"gemini-3.6-flash": 0.74
|
|
4243
4377
|
},
|
|
4244
4378
|
parallelAirline: {
|
|
4245
|
-
"gpt-5-
|
|
4379
|
+
"gpt-5.6-luna": 1,
|
|
4246
4380
|
"claude-sonnet-5": 0.9,
|
|
4247
|
-
"gemini-3.
|
|
4381
|
+
"gemini-3.6-flash": 0.8
|
|
4248
4382
|
},
|
|
4249
4383
|
// RouterBench calibration, 2026-07-26: Opus 4.8 produced complete multi-call
|
|
4250
4384
|
// payloads on 2/3 multilingual BFCL parallel cases. Gemini 3.5 Flash, Sonnet
|
|
@@ -4254,22 +4388,22 @@ var AFFINITY = {
|
|
|
4254
4388
|
"claude-opus-4.8": 1,
|
|
4255
4389
|
"claude-sonnet-5": 0.84,
|
|
4256
4390
|
"grok-4.5": 0.82,
|
|
4257
|
-
"gemini-3.
|
|
4391
|
+
"gemini-3.6-flash": 0.8,
|
|
4258
4392
|
"deepseek-v4-pro": 0.78
|
|
4259
4393
|
},
|
|
4260
4394
|
codeEdit: {
|
|
4261
4395
|
"gpt-5.3-codex": 1,
|
|
4262
|
-
"claude-sonnet-
|
|
4263
|
-
"glm-5.
|
|
4396
|
+
"claude-sonnet-5.5": 0.94,
|
|
4397
|
+
"glm-5.3": 0.9,
|
|
4264
4398
|
"deepseek-v4-pro": 0.86
|
|
4265
4399
|
},
|
|
4266
4400
|
reasoning: {
|
|
4267
4401
|
"claude-sonnet-5": 0.98,
|
|
4268
|
-
"claude-sonnet-
|
|
4402
|
+
"claude-sonnet-5.5": 0.98,
|
|
4269
4403
|
"deepseek-v4-pro": 0.95,
|
|
4270
|
-
"grok-4.
|
|
4404
|
+
"grok-4.7": 0.94,
|
|
4271
4405
|
"gemini-3.1-pro": 0.92,
|
|
4272
|
-
"gemini-3.
|
|
4406
|
+
"gemini-3.6-flash": 0.92
|
|
4273
4407
|
},
|
|
4274
4408
|
// RouterBench calibration (2026-07-28, six stratified GPQA Diamond tasks,
|
|
4275
4409
|
// identical agent adapter and 512-token budget): Gemini 3 Flash Preview
|
|
@@ -4279,7 +4413,7 @@ var AFFINITY = {
|
|
|
4279
4413
|
// this reasoning-only model choice.
|
|
4280
4414
|
reasoningMcq: {
|
|
4281
4415
|
"gemini-3-flash-preview": 1,
|
|
4282
|
-
"gemini-3.
|
|
4416
|
+
"gemini-3.6-flash": 0.91,
|
|
4283
4417
|
"grok-4.5": 0.9,
|
|
4284
4418
|
"claude-sonnet-5": 0.88,
|
|
4285
4419
|
"deepseek-v4-pro": 0.84
|
|
@@ -4287,18 +4421,31 @@ var AFFINITY = {
|
|
|
4287
4421
|
// Same calibration, five multilingual MGSM tasks: Gemini 3.5 Flash was 5/5
|
|
4288
4422
|
// with the lowest cost and latency; four current flagships were 4/5 and Kimi
|
|
4289
4423
|
// K2.7 was 3/5.
|
|
4424
|
+
//
|
|
4425
|
+
// Kimi K3.1 Pro, paired against Kimi K3 (2026-11-23): all 50 rows of the
|
|
4426
|
+
// pinned RouterBench MGSM slice (5 per language x 10 languages), the text
|
|
4427
|
+
// adapter's `Answer: <number>` contract and deterministic grader, 512 output
|
|
4428
|
+
// tokens, temperature 0, same rows and settings for both. K3 44/50, K3.1 Pro
|
|
4429
|
+
// 41/50; discordant pairs 5 K3-only vs 2 K3.1-only (not significant). Every
|
|
4430
|
+
// K3-only win was K3.1 Pro hitting the 512-token cap; the non-truncated
|
|
4431
|
+
// errors were the same two rows for both. Rerunning the 10 truncated rows at
|
|
4432
|
+
// 2048 tokens gave 8/10 each (46/50 each overall), so the gap is verbosity at
|
|
4433
|
+
// the calibration budget, not arithmetic. K3.1 Pro was also slower (p95
|
|
4434
|
+
// 10.4s vs 4.7s). It moves from K3's carried 0.9 to 0.88: below the models
|
|
4435
|
+
// the 4/5 calibration put at 0.9, by less than the raw 41/44 ratio because
|
|
4436
|
+
// the difference is within noise.
|
|
4290
4437
|
reasoningMath: {
|
|
4291
|
-
"gemini-3.
|
|
4438
|
+
"gemini-3.6-flash": 1,
|
|
4292
4439
|
"grok-4.5": 0.93,
|
|
4293
4440
|
"claude-sonnet-5": 0.9,
|
|
4294
4441
|
"deepseek-v4-pro": 0.9,
|
|
4295
|
-
"kimi-k3": 0.
|
|
4442
|
+
"kimi-k3.1-pro": 0.88
|
|
4296
4443
|
},
|
|
4297
4444
|
vision: {
|
|
4298
4445
|
"gemini-3.1-pro": 0.96,
|
|
4299
4446
|
"qwen3.7-max": 0.9,
|
|
4300
|
-
"claude-sonnet-
|
|
4301
|
-
"kimi-k3": 0.9,
|
|
4447
|
+
"claude-sonnet-5.5": 0.9,
|
|
4448
|
+
"kimi-k3.1-pro": 0.9,
|
|
4302
4449
|
"grok-4.3": 0.9
|
|
4303
4450
|
},
|
|
4304
4451
|
// Long-context eligibility is necessary but not sufficient: a provider can
|
|
@@ -4308,38 +4455,49 @@ var AFFINITY = {
|
|
|
4308
4455
|
longContext: {
|
|
4309
4456
|
"gemini-3.1-pro": 1,
|
|
4310
4457
|
"qwen3.7-max": 0.89,
|
|
4311
|
-
"glm-5.
|
|
4312
|
-
"gemini-3.
|
|
4458
|
+
"glm-5.3": 0.89,
|
|
4459
|
+
"gemini-3.6-flash": 0.88,
|
|
4313
4460
|
"deepseek-v4-pro": 0.85
|
|
4314
4461
|
},
|
|
4315
4462
|
// A structured extraction must preserve both the output contract and the
|
|
4316
4463
|
// source-language fields. For Mandarin input the language-native Kimi
|
|
4317
4464
|
// candidate gets a distinct band — a candidate-pool decision, not a post-hoc
|
|
4318
|
-
// override, so it still falls back normally when Kimi is unavailable.
|
|
4319
|
-
//
|
|
4320
|
-
// auto affinityFloorGap (0.10) or price alone
|
|
4321
|
-
// for Mandarin input; 0.12 keeps
|
|
4322
|
-
// leaves every other language untouched.
|
|
4465
|
+
// override, so it still falls back normally when Kimi is unavailable. The
|
|
4466
|
+
// Kimi flagship costs several times the cheap extraction models, so the band
|
|
4467
|
+
// must be wider than the auto affinityFloorGap (0.10) or price alone
|
|
4468
|
+
// re-selects a non-native model for Mandarin input; 0.12 keeps Kimi alone in
|
|
4469
|
+
// the primary band for zh and leaves every other language untouched.
|
|
4470
|
+
//
|
|
4471
|
+
// Only one "kimi-k3.1-pro" value in AFFINITY is measured on K3.1 Pro:
|
|
4472
|
+
// reasoningMath (paired K3 vs K3.1 Pro on 50 MGSM rows, 2026-11-23; see that
|
|
4473
|
+
// band). Every other value (codeAgent, retailStandard, retailHigh,
|
|
4474
|
+
// toolAgent, vision, extractionZh, extraction, chat) is still carried over
|
|
4475
|
+
// from the Kimi flagship it replaced (K3, whose values were in turn carried
|
|
4476
|
+
// from K2.7). Those bands' calibrations could not be rerun locally: the
|
|
4477
|
+
// Terminal-Bench and tau2 trajectories need the RouterBench Franklin host
|
|
4478
|
+
// (and Docker for Terminal-Bench), and no extraction or vision slice has a
|
|
4479
|
+
// runner. K3.1 Pro's other evidence is the 2026-11-23 live probe: 3/3
|
|
4480
|
+
// completions, 0 errors, a well-formed tool call.
|
|
4323
4481
|
extractionZh: {
|
|
4324
|
-
"kimi-k3": 1,
|
|
4325
|
-
"gemini-3.
|
|
4326
|
-
"gemini-
|
|
4482
|
+
"kimi-k3.1-pro": 1,
|
|
4483
|
+
"gemini-3.6-flash": 0.88,
|
|
4484
|
+
"gemini-3.5-flash-lite": 0.88,
|
|
4327
4485
|
"gpt-4o-mini": 0.88,
|
|
4328
4486
|
"claude-sonnet-5": 0.88,
|
|
4329
|
-
"claude-sonnet-
|
|
4487
|
+
"claude-sonnet-5.5": 0.88
|
|
4330
4488
|
},
|
|
4331
4489
|
extraction: {
|
|
4332
|
-
"kimi-k3": 0.9,
|
|
4333
|
-
"gemini-3.
|
|
4334
|
-
"gemini-
|
|
4490
|
+
"kimi-k3.1-pro": 0.9,
|
|
4491
|
+
"gemini-3.6-flash": 0.9,
|
|
4492
|
+
"gemini-3.5-flash-lite": 0.9,
|
|
4335
4493
|
"gpt-4o-mini": 0.9,
|
|
4336
4494
|
"claude-sonnet-5": 0.9,
|
|
4337
|
-
"claude-sonnet-
|
|
4495
|
+
"claude-sonnet-5.5": 0.9
|
|
4338
4496
|
},
|
|
4339
4497
|
chat: {
|
|
4340
|
-
"gemini-3.
|
|
4341
|
-
"gemini-
|
|
4342
|
-
"kimi-k3": 0.86
|
|
4498
|
+
"gemini-3.6-flash": 0.86,
|
|
4499
|
+
"gemini-3.5-flash-lite": 0.86,
|
|
4500
|
+
"kimi-k3.1-pro": 0.86
|
|
4343
4501
|
}
|
|
4344
4502
|
};
|
|
4345
4503
|
function affinityBand(features) {
|
|
@@ -4404,9 +4562,9 @@ function evidenceCandidates(task) {
|
|
|
4404
4562
|
return [
|
|
4405
4563
|
"openai/gpt-5.3-codex",
|
|
4406
4564
|
"anthropic/claude-sonnet-5",
|
|
4407
|
-
"openai/gpt-5-
|
|
4408
|
-
"google/gemini-3.
|
|
4409
|
-
"moonshot/kimi-k3",
|
|
4565
|
+
"openai/gpt-5.6-luna",
|
|
4566
|
+
"google/gemini-3.6-flash",
|
|
4567
|
+
"moonshot/kimi-k3.1-pro",
|
|
4410
4568
|
"deepseek/deepseek-v4-pro"
|
|
4411
4569
|
];
|
|
4412
4570
|
}
|
|
@@ -4414,12 +4572,12 @@ function evidenceCandidates(task) {
|
|
|
4414
4572
|
return [
|
|
4415
4573
|
"anthropic/claude-sonnet-5",
|
|
4416
4574
|
"anthropic/claude-opus-5",
|
|
4417
|
-
"openai/gpt-5-
|
|
4575
|
+
"openai/gpt-5.6-luna",
|
|
4418
4576
|
"openai/gpt-4.1",
|
|
4419
4577
|
"openai/gpt-4o-mini",
|
|
4420
|
-
"google/gemini-3.
|
|
4578
|
+
"google/gemini-3.6-flash",
|
|
4421
4579
|
"openai/gpt-5.3-codex",
|
|
4422
|
-
"moonshot/kimi-k3",
|
|
4580
|
+
"moonshot/kimi-k3.1-pro",
|
|
4423
4581
|
"deepseek/deepseek-v4-pro"
|
|
4424
4582
|
];
|
|
4425
4583
|
}
|
|
@@ -4428,11 +4586,11 @@ function evidenceCandidates(task) {
|
|
|
4428
4586
|
"anthropic/claude-opus-5",
|
|
4429
4587
|
"anthropic/claude-opus-4.8",
|
|
4430
4588
|
"anthropic/claude-sonnet-5",
|
|
4431
|
-
"openai/gpt-5-
|
|
4589
|
+
"openai/gpt-5.6-luna",
|
|
4432
4590
|
"openai/gpt-4.1",
|
|
4433
4591
|
"openai/gpt-4o-mini",
|
|
4434
4592
|
"xai/grok-4.5",
|
|
4435
|
-
"google/gemini-3.
|
|
4593
|
+
"google/gemini-3.6-flash",
|
|
4436
4594
|
"deepseek/deepseek-v4-pro"
|
|
4437
4595
|
];
|
|
4438
4596
|
}
|
|
@@ -4441,29 +4599,29 @@ function evidenceCandidates(task) {
|
|
|
4441
4599
|
"google/gemini-3.1-pro",
|
|
4442
4600
|
"deepseek/deepseek-v4-pro",
|
|
4443
4601
|
"qwen/qwen3.7-max",
|
|
4444
|
-
"zai/glm-5.
|
|
4445
|
-
"google/gemini-3.
|
|
4602
|
+
"zai/glm-5.3",
|
|
4603
|
+
"google/gemini-3.6-flash"
|
|
4446
4604
|
];
|
|
4447
4605
|
}
|
|
4448
4606
|
if (task === "reasoning_mcq") {
|
|
4449
4607
|
return [
|
|
4450
4608
|
"google/gemini-3-flash-preview",
|
|
4451
|
-
"google/gemini-3.
|
|
4609
|
+
"google/gemini-3.6-flash",
|
|
4452
4610
|
"xai/grok-4.5",
|
|
4453
4611
|
"anthropic/claude-sonnet-5",
|
|
4454
4612
|
"deepseek/deepseek-v4-pro"
|
|
4455
4613
|
];
|
|
4456
4614
|
}
|
|
4457
4615
|
if (task === "extraction") {
|
|
4458
|
-
return ["moonshot/kimi-k3", "google/gemini-3.
|
|
4616
|
+
return ["moonshot/kimi-k3.1-pro", "google/gemini-3.6-flash", "anthropic/claude-sonnet-5"];
|
|
4459
4617
|
}
|
|
4460
4618
|
if (task === "reasoning_math") {
|
|
4461
4619
|
return [
|
|
4462
|
-
"google/gemini-3.
|
|
4620
|
+
"google/gemini-3.6-flash",
|
|
4463
4621
|
"xai/grok-4.5",
|
|
4464
4622
|
"anthropic/claude-sonnet-5",
|
|
4465
4623
|
"deepseek/deepseek-v4-pro",
|
|
4466
|
-
"moonshot/kimi-k3"
|
|
4624
|
+
"moonshot/kimi-k3.1-pro"
|
|
4467
4625
|
];
|
|
4468
4626
|
}
|
|
4469
4627
|
return [];
|
|
@@ -4474,11 +4632,15 @@ var VERIFIED_TOOL_FALLBACKS = [
|
|
|
4474
4632
|
"anthropic/claude-sonnet-5.5",
|
|
4475
4633
|
"deepseek/deepseek-v4.1-flash",
|
|
4476
4634
|
"google/gemini-3.8-flash",
|
|
4635
|
+
"google/gemini-4-argon",
|
|
4636
|
+
"google/gemini-4-carbon",
|
|
4637
|
+
"google/gemini-4-hydrogen",
|
|
4638
|
+
"google/gemini-4-neon",
|
|
4477
4639
|
"openai/gpt-5.1",
|
|
4478
|
-
"openai/gpt-6-
|
|
4640
|
+
"openai/gpt-5.6-luna-pro",
|
|
4479
4641
|
"openai/gpt-6-luna",
|
|
4480
|
-
"openai/gpt-6-
|
|
4481
|
-
"openai/gpt-6.
|
|
4642
|
+
"openai/gpt-6.2-astra",
|
|
4643
|
+
"openai/gpt-6.2-sol",
|
|
4482
4644
|
"xai/grok-4.6",
|
|
4483
4645
|
"xai/grok-4.7",
|
|
4484
4646
|
"xiaomi/mimo-v2.5"
|
|
@@ -4611,8 +4773,8 @@ var PortfolioStrategy = class {
|
|
|
4611
4773
|
const scoredModels = rankedEntries.map((item) => item.model);
|
|
4612
4774
|
const webResearchFallbackOrder = [
|
|
4613
4775
|
"anthropic/claude-sonnet-5",
|
|
4614
|
-
"openai/gpt-5-
|
|
4615
|
-
"google/gemini-3.
|
|
4776
|
+
"openai/gpt-5.6-luna",
|
|
4777
|
+
"google/gemini-3.6-flash",
|
|
4616
4778
|
"anthropic/claude-opus-5",
|
|
4617
4779
|
"anthropic/claude-opus-4.8",
|
|
4618
4780
|
"openai/gpt-5.3-codex"
|
|
@@ -5242,7 +5404,7 @@ function getCostSummary() {
|
|
|
5242
5404
|
}
|
|
5243
5405
|
|
|
5244
5406
|
// src/version.ts
|
|
5245
|
-
var SDK_VERSION = "4.
|
|
5407
|
+
var SDK_VERSION = "4.5.0";
|
|
5246
5408
|
var USER_AGENT = `blockrun-ts/${SDK_VERSION}`;
|
|
5247
5409
|
|
|
5248
5410
|
// src/client.ts
|