@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.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+92f77ecf38f26_fgur35njqqflxyj3ae7ccxtje4/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": {
|
|
@@ -2858,24 +2912,15 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
2858
2912
|
supportsVision: false
|
|
2859
2913
|
},
|
|
2860
2914
|
"mistral/mistral-large-4": {
|
|
2861
|
-
// supportsTools: not probed — fails closed
|
|
2862
2915
|
contextWindow: 524288,
|
|
2863
2916
|
maxOutputTokens: 262144,
|
|
2864
|
-
supportsTools: false,
|
|
2865
|
-
supportsVision: true
|
|
2866
|
-
},
|
|
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
2917
|
supportsTools: true,
|
|
2872
2918
|
supportsVision: true
|
|
2873
2919
|
},
|
|
2874
2920
|
"moonshot/kimi-k3.1-pro": {
|
|
2875
|
-
// supportsTools: not probed — fails closed
|
|
2876
2921
|
contextWindow: 1048576,
|
|
2877
2922
|
maxOutputTokens: 65536,
|
|
2878
|
-
supportsTools:
|
|
2923
|
+
supportsTools: true,
|
|
2879
2924
|
supportsVision: true
|
|
2880
2925
|
},
|
|
2881
2926
|
"nvidia/minimax-m3.1-flash": {
|
|
@@ -2914,10 +2959,9 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
2914
2959
|
supportsVision: false
|
|
2915
2960
|
},
|
|
2916
2961
|
"nvidia/nemotron-3.5-bolt": {
|
|
2917
|
-
// supportsTools: not probed — fails closed
|
|
2918
2962
|
contextWindow: 131072,
|
|
2919
2963
|
maxOutputTokens: 16384,
|
|
2920
|
-
supportsTools:
|
|
2964
|
+
supportsTools: true,
|
|
2921
2965
|
supportsVision: true
|
|
2922
2966
|
},
|
|
2923
2967
|
"nvidia/nemotron-3.5-lightning": {
|
|
@@ -3036,7 +3080,7 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3036
3080
|
"openai/gpt-5.6-luna-pro": {
|
|
3037
3081
|
contextWindow: 105e4,
|
|
3038
3082
|
maxOutputTokens: 128e3,
|
|
3039
|
-
supportsTools:
|
|
3083
|
+
supportsTools: true,
|
|
3040
3084
|
supportsVision: true
|
|
3041
3085
|
},
|
|
3042
3086
|
"openai/gpt-5.6-sol": {
|
|
@@ -3087,42 +3131,41 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3087
3131
|
supportsTools: true,
|
|
3088
3132
|
supportsVision: true
|
|
3089
3133
|
},
|
|
3090
|
-
"openai/
|
|
3091
|
-
contextWindow:
|
|
3092
|
-
maxOutputTokens:
|
|
3134
|
+
"openai/gpt-6.1-terra": {
|
|
3135
|
+
contextWindow: 105e4,
|
|
3136
|
+
maxOutputTokens: 128e3,
|
|
3093
3137
|
supportsTools: true,
|
|
3094
|
-
supportsVision:
|
|
3138
|
+
supportsVision: true
|
|
3095
3139
|
},
|
|
3096
|
-
"openai/
|
|
3097
|
-
contextWindow:
|
|
3098
|
-
maxOutputTokens:
|
|
3140
|
+
"openai/gpt-6.2-astra": {
|
|
3141
|
+
contextWindow: 105e4,
|
|
3142
|
+
maxOutputTokens: 128e3,
|
|
3099
3143
|
supportsTools: true,
|
|
3100
|
-
supportsVision:
|
|
3144
|
+
supportsVision: true
|
|
3101
3145
|
},
|
|
3102
|
-
"openai/
|
|
3103
|
-
contextWindow:
|
|
3104
|
-
maxOutputTokens:
|
|
3146
|
+
"openai/gpt-6.2-sol": {
|
|
3147
|
+
contextWindow: 105e4,
|
|
3148
|
+
maxOutputTokens: 128e3,
|
|
3105
3149
|
supportsTools: true,
|
|
3106
|
-
supportsVision:
|
|
3150
|
+
supportsVision: true
|
|
3107
3151
|
},
|
|
3108
|
-
"openai/
|
|
3109
|
-
contextWindow:
|
|
3152
|
+
"openai/o3": {
|
|
3153
|
+
contextWindow: 2e5,
|
|
3110
3154
|
maxOutputTokens: 1e5,
|
|
3111
3155
|
supportsTools: true,
|
|
3112
3156
|
supportsVision: false
|
|
3113
3157
|
},
|
|
3114
3158
|
"poolside/laguna-s-2.1": {
|
|
3115
|
-
// supportsTools:
|
|
3159
|
+
// supportsTools: gateway unavailable at probe time — fails closed
|
|
3116
3160
|
contextWindow: 1048576,
|
|
3117
3161
|
maxOutputTokens: 131072,
|
|
3118
3162
|
supportsTools: false,
|
|
3119
3163
|
supportsVision: false
|
|
3120
3164
|
},
|
|
3121
3165
|
"poolside/laguna-xs-2.1": {
|
|
3122
|
-
// supportsTools: not probed — fails closed
|
|
3123
3166
|
contextWindow: 131072,
|
|
3124
3167
|
maxOutputTokens: 16384,
|
|
3125
|
-
supportsTools:
|
|
3168
|
+
supportsTools: true,
|
|
3126
3169
|
supportsVision: false
|
|
3127
3170
|
},
|
|
3128
3171
|
"qwen/qwen3.7-flash": {
|
|
@@ -3146,21 +3189,19 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
3146
3189
|
"qwen/qwen3.8-flash": {
|
|
3147
3190
|
contextWindow: 1e6,
|
|
3148
3191
|
maxOutputTokens: 131072,
|
|
3149
|
-
supportsTools:
|
|
3192
|
+
supportsTools: true,
|
|
3150
3193
|
supportsVision: true
|
|
3151
3194
|
},
|
|
3152
3195
|
"qwen/qwen3.8-max": {
|
|
3153
|
-
// supportsTools: not probed — fails closed
|
|
3154
3196
|
contextWindow: 1e6,
|
|
3155
3197
|
maxOutputTokens: 131072,
|
|
3156
|
-
supportsTools:
|
|
3198
|
+
supportsTools: true,
|
|
3157
3199
|
supportsVision: false
|
|
3158
3200
|
},
|
|
3159
3201
|
"tencent/hy4-preview": {
|
|
3160
|
-
// supportsTools: not probed — fails closed
|
|
3161
3202
|
contextWindow: 1048576,
|
|
3162
3203
|
maxOutputTokens: 64e3,
|
|
3163
|
-
supportsTools:
|
|
3204
|
+
supportsTools: true,
|
|
3164
3205
|
supportsVision: false
|
|
3165
3206
|
},
|
|
3166
3207
|
"xai/grok-4.3": {
|
|
@@ -3251,6 +3292,14 @@ var model_profiles_generated_default = {
|
|
|
3251
3292
|
errorRate: 0,
|
|
3252
3293
|
samples: 3
|
|
3253
3294
|
},
|
|
3295
|
+
"anthropic/claude-fable-5.2": {
|
|
3296
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3297
|
+
latencyMs: 5587.3,
|
|
3298
|
+
p95LatencyMs: 6206.1,
|
|
3299
|
+
outputTokensPerSecond: 92.94,
|
|
3300
|
+
errorRate: 0,
|
|
3301
|
+
samples: 3
|
|
3302
|
+
},
|
|
3254
3303
|
"anthropic/claude-haiku-4.5": {
|
|
3255
3304
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3256
3305
|
latencyMs: 3157.4,
|
|
@@ -3291,6 +3340,14 @@ var model_profiles_generated_default = {
|
|
|
3291
3340
|
errorRate: 0,
|
|
3292
3341
|
samples: 3
|
|
3293
3342
|
},
|
|
3343
|
+
"anthropic/claude-opus-5.5": {
|
|
3344
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3345
|
+
latencyMs: 6485.2,
|
|
3346
|
+
p95LatencyMs: 6951.2,
|
|
3347
|
+
outputTokensPerSecond: 79.15,
|
|
3348
|
+
errorRate: 0,
|
|
3349
|
+
samples: 3
|
|
3350
|
+
},
|
|
3294
3351
|
"anthropic/claude-sonnet-4.5": {
|
|
3295
3352
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3296
3353
|
latencyMs: 6330.4,
|
|
@@ -3315,6 +3372,14 @@ var model_profiles_generated_default = {
|
|
|
3315
3372
|
errorRate: 0,
|
|
3316
3373
|
samples: 3
|
|
3317
3374
|
},
|
|
3375
|
+
"anthropic/claude-sonnet-5.5": {
|
|
3376
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3377
|
+
latencyMs: 4770.2,
|
|
3378
|
+
p95LatencyMs: 5352,
|
|
3379
|
+
outputTokensPerSecond: 108.11,
|
|
3380
|
+
errorRate: 0,
|
|
3381
|
+
samples: 3
|
|
3382
|
+
},
|
|
3318
3383
|
"deepseek/deepseek-chat": {
|
|
3319
3384
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3320
3385
|
latencyMs: 4351.4,
|
|
@@ -3331,6 +3396,14 @@ var model_profiles_generated_default = {
|
|
|
3331
3396
|
errorRate: 0,
|
|
3332
3397
|
samples: 3
|
|
3333
3398
|
},
|
|
3399
|
+
"deepseek/deepseek-v4-flash-vision-exp": {
|
|
3400
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3401
|
+
latencyMs: 4078.4,
|
|
3402
|
+
p95LatencyMs: 4464.5,
|
|
3403
|
+
outputTokensPerSecond: 127,
|
|
3404
|
+
errorRate: 0,
|
|
3405
|
+
samples: 3
|
|
3406
|
+
},
|
|
3334
3407
|
"deepseek/deepseek-v4-pro": {
|
|
3335
3408
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3336
3409
|
latencyMs: 8781.2,
|
|
@@ -3419,6 +3492,38 @@ var model_profiles_generated_default = {
|
|
|
3419
3492
|
errorRate: 0,
|
|
3420
3493
|
samples: 3
|
|
3421
3494
|
},
|
|
3495
|
+
"google/gemini-4-argon": {
|
|
3496
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3497
|
+
latencyMs: 9565.7,
|
|
3498
|
+
p95LatencyMs: 10491.9,
|
|
3499
|
+
outputTokensPerSecond: 53.87,
|
|
3500
|
+
errorRate: 0,
|
|
3501
|
+
samples: 3
|
|
3502
|
+
},
|
|
3503
|
+
"google/gemini-4-carbon": {
|
|
3504
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3505
|
+
latencyMs: 10692.9,
|
|
3506
|
+
p95LatencyMs: 12609.2,
|
|
3507
|
+
outputTokensPerSecond: 48.61,
|
|
3508
|
+
errorRate: 0,
|
|
3509
|
+
samples: 3
|
|
3510
|
+
},
|
|
3511
|
+
"google/gemini-4-hydrogen": {
|
|
3512
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3513
|
+
latencyMs: 4520.7,
|
|
3514
|
+
p95LatencyMs: 4928.3,
|
|
3515
|
+
outputTokensPerSecond: 113.78,
|
|
3516
|
+
errorRate: 0,
|
|
3517
|
+
samples: 3
|
|
3518
|
+
},
|
|
3519
|
+
"google/gemini-4-neon": {
|
|
3520
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3521
|
+
latencyMs: 6728,
|
|
3522
|
+
p95LatencyMs: 8294.8,
|
|
3523
|
+
outputTokensPerSecond: 78,
|
|
3524
|
+
errorRate: 0,
|
|
3525
|
+
samples: 3
|
|
3526
|
+
},
|
|
3422
3527
|
"minimax/minimax-m2.7": {
|
|
3423
3528
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3424
3529
|
latencyMs: 8761.1,
|
|
@@ -3435,6 +3540,14 @@ var model_profiles_generated_default = {
|
|
|
3435
3540
|
errorRate: 0,
|
|
3436
3541
|
samples: 3
|
|
3437
3542
|
},
|
|
3543
|
+
"mistral/mistral-large-4": {
|
|
3544
|
+
measuredAt: "2026-11-28T04:13:09Z",
|
|
3545
|
+
latencyMs: 6174.9,
|
|
3546
|
+
p95LatencyMs: 7306.8,
|
|
3547
|
+
outputTokensPerSecond: 84.27,
|
|
3548
|
+
errorRate: 0,
|
|
3549
|
+
samples: 3
|
|
3550
|
+
},
|
|
3438
3551
|
"moonshot/kimi-k3": {
|
|
3439
3552
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3440
3553
|
latencyMs: 24498.9,
|
|
@@ -3443,6 +3556,14 @@ var model_profiles_generated_default = {
|
|
|
3443
3556
|
errorRate: 0,
|
|
3444
3557
|
samples: 3
|
|
3445
3558
|
},
|
|
3559
|
+
"moonshot/kimi-k3.1-pro": {
|
|
3560
|
+
measuredAt: "2026-11-23T20:18:18Z",
|
|
3561
|
+
latencyMs: 9243.1,
|
|
3562
|
+
p95LatencyMs: 10504.1,
|
|
3563
|
+
outputTokensPerSecond: 55.89,
|
|
3564
|
+
errorRate: 0,
|
|
3565
|
+
samples: 3
|
|
3566
|
+
},
|
|
3446
3567
|
"nvidia/mistral-nemotron": {
|
|
3447
3568
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3448
3569
|
latencyMs: 7349.6,
|
|
@@ -3459,6 +3580,14 @@ var model_profiles_generated_default = {
|
|
|
3459
3580
|
errorRate: 0.3333,
|
|
3460
3581
|
samples: 3
|
|
3461
3582
|
},
|
|
3583
|
+
"nvidia/nemotron-3.5-bolt": {
|
|
3584
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3585
|
+
latencyMs: 5670.2,
|
|
3586
|
+
p95LatencyMs: 5688.6,
|
|
3587
|
+
outputTokensPerSecond: 90.3,
|
|
3588
|
+
errorRate: 0,
|
|
3589
|
+
samples: 3
|
|
3590
|
+
},
|
|
3462
3591
|
"nvidia/nemotron-nano-12b-v2-vl": {
|
|
3463
3592
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3464
3593
|
latencyMs: 5846.9,
|
|
@@ -3596,11 +3725,11 @@ var model_profiles_generated_default = {
|
|
|
3596
3725
|
samples: 3
|
|
3597
3726
|
},
|
|
3598
3727
|
"openai/gpt-5.6-luna-pro": {
|
|
3599
|
-
measuredAt: "2026-
|
|
3600
|
-
latencyMs:
|
|
3601
|
-
p95LatencyMs:
|
|
3602
|
-
outputTokensPerSecond:
|
|
3603
|
-
errorRate: 0
|
|
3728
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3729
|
+
latencyMs: 11046.8,
|
|
3730
|
+
p95LatencyMs: 12033.6,
|
|
3731
|
+
outputTokensPerSecond: 148.22,
|
|
3732
|
+
errorRate: 0,
|
|
3604
3733
|
samples: 3
|
|
3605
3734
|
},
|
|
3606
3735
|
"openai/gpt-5.6-sol": {
|
|
@@ -3643,6 +3772,30 @@ var model_profiles_generated_default = {
|
|
|
3643
3772
|
errorRate: 0,
|
|
3644
3773
|
samples: 3
|
|
3645
3774
|
},
|
|
3775
|
+
"openai/gpt-6.1-terra": {
|
|
3776
|
+
measuredAt: "2026-11-28T04:14:35Z",
|
|
3777
|
+
latencyMs: 6020,
|
|
3778
|
+
p95LatencyMs: 6378.1,
|
|
3779
|
+
outputTokensPerSecond: 57.78,
|
|
3780
|
+
errorRate: 0,
|
|
3781
|
+
samples: 3
|
|
3782
|
+
},
|
|
3783
|
+
"openai/gpt-6.2-astra": {
|
|
3784
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3785
|
+
latencyMs: 7973.9,
|
|
3786
|
+
p95LatencyMs: 9532.7,
|
|
3787
|
+
outputTokensPerSecond: 47.21,
|
|
3788
|
+
errorRate: 0,
|
|
3789
|
+
samples: 3
|
|
3790
|
+
},
|
|
3791
|
+
"openai/gpt-6.2-sol": {
|
|
3792
|
+
measuredAt: "2026-11-27T23:25:03Z",
|
|
3793
|
+
latencyMs: 6310.9,
|
|
3794
|
+
p95LatencyMs: 6725.5,
|
|
3795
|
+
outputTokensPerSecond: 58.01,
|
|
3796
|
+
errorRate: 0,
|
|
3797
|
+
samples: 3
|
|
3798
|
+
},
|
|
3646
3799
|
"openai/o1": {
|
|
3647
3800
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3648
3801
|
latencyMs: 4324.9,
|
|
@@ -3699,6 +3852,22 @@ var model_profiles_generated_default = {
|
|
|
3699
3852
|
errorRate: 0,
|
|
3700
3853
|
samples: 3
|
|
3701
3854
|
},
|
|
3855
|
+
"qwen/qwen3.8-flash": {
|
|
3856
|
+
measuredAt: "2026-11-28T04:13:09Z",
|
|
3857
|
+
latencyMs: 8271.9,
|
|
3858
|
+
p95LatencyMs: 8495,
|
|
3859
|
+
outputTokensPerSecond: 61.95,
|
|
3860
|
+
errorRate: 0,
|
|
3861
|
+
samples: 3
|
|
3862
|
+
},
|
|
3863
|
+
"qwen/qwen3.8-max": {
|
|
3864
|
+
measuredAt: "2026-11-28T04:13:09Z",
|
|
3865
|
+
latencyMs: 15575.9,
|
|
3866
|
+
p95LatencyMs: 16331,
|
|
3867
|
+
outputTokensPerSecond: 32.95,
|
|
3868
|
+
errorRate: 0,
|
|
3869
|
+
samples: 3
|
|
3870
|
+
},
|
|
3702
3871
|
"tencent/hy3": {
|
|
3703
3872
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3704
3873
|
latencyMs: 6062.3,
|
|
@@ -3707,6 +3876,14 @@ var model_profiles_generated_default = {
|
|
|
3707
3876
|
errorRate: 0,
|
|
3708
3877
|
samples: 3
|
|
3709
3878
|
},
|
|
3879
|
+
"tencent/hy4-preview": {
|
|
3880
|
+
measuredAt: "2026-11-28T04:13:09Z",
|
|
3881
|
+
latencyMs: 9049.2,
|
|
3882
|
+
p95LatencyMs: 9460.4,
|
|
3883
|
+
outputTokensPerSecond: 56.69,
|
|
3884
|
+
errorRate: 0,
|
|
3885
|
+
samples: 3
|
|
3886
|
+
},
|
|
3710
3887
|
"xai/grok-4.3": {
|
|
3711
3888
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
3712
3889
|
latencyMs: 9467.7,
|
|
@@ -4090,20 +4267,20 @@ var NEUTRAL_AFFINITY = 0.68;
|
|
|
4090
4267
|
var TERMINAL_COMPLEX_HIGH = {
|
|
4091
4268
|
"claude-sonnet-5": 1,
|
|
4092
4269
|
"gpt-5.3-codex": 0.87,
|
|
4093
|
-
"gpt-5-
|
|
4094
|
-
"gemini-3.
|
|
4270
|
+
"gpt-5.6-luna": 0.78,
|
|
4271
|
+
"gemini-3.6-flash": 0.76
|
|
4095
4272
|
};
|
|
4096
4273
|
var WEB_RESEARCH_DEEP = {
|
|
4097
4274
|
"claude-sonnet-5": 1,
|
|
4098
|
-
"gpt-5-
|
|
4099
|
-
"gemini-3.
|
|
4275
|
+
"gpt-5.6-luna": 0.88,
|
|
4276
|
+
"gemini-3.6-flash": 0.84,
|
|
4100
4277
|
"claude-opus-5": 0.8,
|
|
4101
4278
|
"claude-opus-4.8": 0.78
|
|
4102
4279
|
};
|
|
4103
4280
|
var WEB_RESEARCH = {
|
|
4104
4281
|
"claude-sonnet-5": 1,
|
|
4105
|
-
"gpt-5-
|
|
4106
|
-
"gemini-3.
|
|
4282
|
+
"gpt-5.6-luna": 0.88,
|
|
4283
|
+
"gemini-3.6-flash": 0.86,
|
|
4107
4284
|
"claude-opus-5": 0.84,
|
|
4108
4285
|
"claude-opus-4.8": 0.82
|
|
4109
4286
|
};
|
|
@@ -4111,11 +4288,11 @@ var RETAIL_POLICY_EXCEPTION = {
|
|
|
4111
4288
|
"gpt-4.1": 1,
|
|
4112
4289
|
"claude-sonnet-5": 0.9,
|
|
4113
4290
|
"deepseek-v4-pro": 0.82,
|
|
4114
|
-
"gpt-5-
|
|
4291
|
+
"gpt-5.6-luna": 0.8,
|
|
4115
4292
|
"gpt-4o-mini": 0.76
|
|
4116
4293
|
};
|
|
4117
4294
|
var RETAIL_POLICY_EXCEPTION_SIMPLE = {
|
|
4118
|
-
"gpt-5-
|
|
4295
|
+
"gpt-5.6-luna": 1,
|
|
4119
4296
|
"gpt-4.1": 0.86,
|
|
4120
4297
|
"deepseek-v4-pro": 0.82,
|
|
4121
4298
|
"gpt-4o-mini": 0.8
|
|
@@ -4132,20 +4309,20 @@ var AFFINITY = {
|
|
|
4132
4309
|
codeAgent: {
|
|
4133
4310
|
"gpt-5.3-codex": 1,
|
|
4134
4311
|
"claude-sonnet-5": 0.98,
|
|
4135
|
-
"gpt-5-
|
|
4136
|
-
"gemini-3.
|
|
4137
|
-
"kimi-k3": 0.9,
|
|
4312
|
+
"gpt-5.6-luna": 0.96,
|
|
4313
|
+
"gemini-3.6-flash": 0.92,
|
|
4314
|
+
"kimi-k3.1-pro": 0.9,
|
|
4138
4315
|
"deepseek-v4-pro": 0.88,
|
|
4139
|
-
"glm-5.
|
|
4316
|
+
"glm-5.3": 0.88
|
|
4140
4317
|
},
|
|
4141
4318
|
// Seven official Terminal-Bench calibration trajectories favoured GPT-5 Mini
|
|
4142
4319
|
// over the prior dynamic choice. Codex/Sonnet are close fallbacks; actual
|
|
4143
4320
|
// request cost breaks the tie.
|
|
4144
4321
|
terminalTool: {
|
|
4145
|
-
"gpt-5-
|
|
4322
|
+
"gpt-5.6-luna": 1,
|
|
4146
4323
|
"gpt-5.3-codex": 0.98,
|
|
4147
4324
|
"claude-sonnet-5": 0.9,
|
|
4148
|
-
"gemini-3.
|
|
4325
|
+
"gemini-3.6-flash": 0.89
|
|
4149
4326
|
},
|
|
4150
4327
|
// Two complete agent observations on the public Terminal-Bench
|
|
4151
4328
|
// new-encrypt-command task ended in Codex repeating the same TerminalExec
|
|
@@ -4164,20 +4341,20 @@ var AFFINITY = {
|
|
|
4164
4341
|
// arguments. DeepSeek V4 Pro completed all three high-risk retail calibration
|
|
4165
4342
|
// trajectories (global-choice, cross-record, multi-write); Sonnet one.
|
|
4166
4343
|
retailStandard: {
|
|
4167
|
-
"gpt-5-
|
|
4344
|
+
"gpt-5.6-luna": 1,
|
|
4168
4345
|
"claude-sonnet-5": 0.88,
|
|
4169
|
-
"gemini-3.
|
|
4346
|
+
"gemini-3.6-flash": 0.82,
|
|
4170
4347
|
"gpt-5.3-codex": 0.81,
|
|
4171
|
-
"kimi-k3": 0.78,
|
|
4348
|
+
"kimi-k3.1-pro": 0.78,
|
|
4172
4349
|
"deepseek-v4-pro": 0.76
|
|
4173
4350
|
},
|
|
4174
4351
|
retailHigh: {
|
|
4175
4352
|
"deepseek-v4-pro": 1,
|
|
4176
4353
|
"claude-sonnet-5": 0.88,
|
|
4177
|
-
"gemini-3.
|
|
4354
|
+
"gemini-3.6-flash": 0.82,
|
|
4178
4355
|
"gpt-5.3-codex": 0.81,
|
|
4179
|
-
"kimi-k3": 0.78,
|
|
4180
|
-
"gpt-5-
|
|
4356
|
+
"kimi-k3.1-pro": 0.78,
|
|
4357
|
+
"gpt-5.6-luna": 0.76
|
|
4181
4358
|
},
|
|
4182
4359
|
// Standard airline workflows stay on GPT-5 Mini: six full-session
|
|
4183
4360
|
// development trajectories gave it the same 5/6 success as Sonnet at roughly
|
|
@@ -4191,14 +4368,14 @@ var AFFINITY = {
|
|
|
4191
4368
|
// roughly two orders of magnitude more on the long-tail case.
|
|
4192
4369
|
airlineComplex: {
|
|
4193
4370
|
"claude-sonnet-5": 1,
|
|
4194
|
-
"gpt-5-
|
|
4195
|
-
"gemini-3.
|
|
4371
|
+
"gpt-5.6-luna": 0.78,
|
|
4372
|
+
"gemini-3.6-flash": 0.76,
|
|
4196
4373
|
"deepseek-v4-pro": 0.74
|
|
4197
4374
|
},
|
|
4198
4375
|
airlineStandard: {
|
|
4199
|
-
"gpt-5-
|
|
4376
|
+
"gpt-5.6-luna": 1,
|
|
4200
4377
|
"claude-sonnet-5": 0.9,
|
|
4201
|
-
"gemini-3.
|
|
4378
|
+
"gemini-3.6-flash": 0.8,
|
|
4202
4379
|
"deepseek-v4-pro": 0.76
|
|
4203
4380
|
},
|
|
4204
4381
|
// Full-trajectory tau2 calibration (2026-07-28, official gpt-4.1 simulator):
|
|
@@ -4208,10 +4385,10 @@ var AFFINITY = {
|
|
|
4208
4385
|
// airline task.
|
|
4209
4386
|
toolAgent: {
|
|
4210
4387
|
"claude-sonnet-5": 1,
|
|
4211
|
-
"gemini-3.
|
|
4388
|
+
"gemini-3.6-flash": 0.88,
|
|
4212
4389
|
"gpt-5.3-codex": 0.87,
|
|
4213
|
-
"kimi-k3": 0.85,
|
|
4214
|
-
"gpt-5-
|
|
4390
|
+
"kimi-k3.1-pro": 0.85,
|
|
4391
|
+
"gpt-5.6-luna": 0.84,
|
|
4215
4392
|
"deepseek-v4-pro": 0.82
|
|
4216
4393
|
},
|
|
4217
4394
|
// Multi-file Terminal work is not equivalent to a one-turn parallel
|
|
@@ -4223,28 +4400,28 @@ var AFFINITY = {
|
|
|
4223
4400
|
"gpt-5.3-codex": 0.86
|
|
4224
4401
|
},
|
|
4225
4402
|
parallelTerminal: {
|
|
4226
|
-
"gpt-5-
|
|
4403
|
+
"gpt-5.6-luna": 1,
|
|
4227
4404
|
"gpt-5.3-codex": 0.98,
|
|
4228
4405
|
"claude-sonnet-5": 0.92,
|
|
4229
|
-
"gemini-3.
|
|
4406
|
+
"gemini-3.6-flash": 0.88
|
|
4230
4407
|
},
|
|
4231
4408
|
parallelRetail: {
|
|
4232
4409
|
"deepseek-v4-pro": 1,
|
|
4233
4410
|
"claude-sonnet-5": 0.88,
|
|
4234
4411
|
"claude-opus-4.8": 0.84,
|
|
4235
|
-
"gpt-5-
|
|
4236
|
-
"gemini-3.
|
|
4412
|
+
"gpt-5.6-luna": 0.78,
|
|
4413
|
+
"gemini-3.6-flash": 0.76
|
|
4237
4414
|
},
|
|
4238
4415
|
parallelAirlineComplex: {
|
|
4239
4416
|
"claude-sonnet-5": 1,
|
|
4240
|
-
"gpt-5-
|
|
4417
|
+
"gpt-5.6-luna": 0.78,
|
|
4241
4418
|
"claude-opus-4.8": 0.76,
|
|
4242
|
-
"gemini-3.
|
|
4419
|
+
"gemini-3.6-flash": 0.74
|
|
4243
4420
|
},
|
|
4244
4421
|
parallelAirline: {
|
|
4245
|
-
"gpt-5-
|
|
4422
|
+
"gpt-5.6-luna": 1,
|
|
4246
4423
|
"claude-sonnet-5": 0.9,
|
|
4247
|
-
"gemini-3.
|
|
4424
|
+
"gemini-3.6-flash": 0.8
|
|
4248
4425
|
},
|
|
4249
4426
|
// RouterBench calibration, 2026-07-26: Opus 4.8 produced complete multi-call
|
|
4250
4427
|
// payloads on 2/3 multilingual BFCL parallel cases. Gemini 3.5 Flash, Sonnet
|
|
@@ -4254,22 +4431,22 @@ var AFFINITY = {
|
|
|
4254
4431
|
"claude-opus-4.8": 1,
|
|
4255
4432
|
"claude-sonnet-5": 0.84,
|
|
4256
4433
|
"grok-4.5": 0.82,
|
|
4257
|
-
"gemini-3.
|
|
4434
|
+
"gemini-3.6-flash": 0.8,
|
|
4258
4435
|
"deepseek-v4-pro": 0.78
|
|
4259
4436
|
},
|
|
4260
4437
|
codeEdit: {
|
|
4261
4438
|
"gpt-5.3-codex": 1,
|
|
4262
|
-
"claude-sonnet-
|
|
4263
|
-
"glm-5.
|
|
4439
|
+
"claude-sonnet-5.5": 0.94,
|
|
4440
|
+
"glm-5.3": 0.9,
|
|
4264
4441
|
"deepseek-v4-pro": 0.86
|
|
4265
4442
|
},
|
|
4266
4443
|
reasoning: {
|
|
4267
4444
|
"claude-sonnet-5": 0.98,
|
|
4268
|
-
"claude-sonnet-
|
|
4445
|
+
"claude-sonnet-5.5": 0.98,
|
|
4269
4446
|
"deepseek-v4-pro": 0.95,
|
|
4270
|
-
"grok-4.
|
|
4447
|
+
"grok-4.7": 0.94,
|
|
4271
4448
|
"gemini-3.1-pro": 0.92,
|
|
4272
|
-
"gemini-3.
|
|
4449
|
+
"gemini-3.6-flash": 0.92
|
|
4273
4450
|
},
|
|
4274
4451
|
// RouterBench calibration (2026-07-28, six stratified GPQA Diamond tasks,
|
|
4275
4452
|
// identical agent adapter and 512-token budget): Gemini 3 Flash Preview
|
|
@@ -4279,7 +4456,7 @@ var AFFINITY = {
|
|
|
4279
4456
|
// this reasoning-only model choice.
|
|
4280
4457
|
reasoningMcq: {
|
|
4281
4458
|
"gemini-3-flash-preview": 1,
|
|
4282
|
-
"gemini-3.
|
|
4459
|
+
"gemini-3.6-flash": 0.91,
|
|
4283
4460
|
"grok-4.5": 0.9,
|
|
4284
4461
|
"claude-sonnet-5": 0.88,
|
|
4285
4462
|
"deepseek-v4-pro": 0.84
|
|
@@ -4287,18 +4464,31 @@ var AFFINITY = {
|
|
|
4287
4464
|
// Same calibration, five multilingual MGSM tasks: Gemini 3.5 Flash was 5/5
|
|
4288
4465
|
// with the lowest cost and latency; four current flagships were 4/5 and Kimi
|
|
4289
4466
|
// K2.7 was 3/5.
|
|
4467
|
+
//
|
|
4468
|
+
// Kimi K3.1 Pro, paired against Kimi K3 (2026-11-23): all 50 rows of the
|
|
4469
|
+
// pinned RouterBench MGSM slice (5 per language x 10 languages), the text
|
|
4470
|
+
// adapter's `Answer: <number>` contract and deterministic grader, 512 output
|
|
4471
|
+
// tokens, temperature 0, same rows and settings for both. K3 44/50, K3.1 Pro
|
|
4472
|
+
// 41/50; discordant pairs 5 K3-only vs 2 K3.1-only (not significant). Every
|
|
4473
|
+
// K3-only win was K3.1 Pro hitting the 512-token cap; the non-truncated
|
|
4474
|
+
// errors were the same two rows for both. Rerunning the 10 truncated rows at
|
|
4475
|
+
// 2048 tokens gave 8/10 each (46/50 each overall), so the gap is verbosity at
|
|
4476
|
+
// the calibration budget, not arithmetic. K3.1 Pro was also slower (p95
|
|
4477
|
+
// 10.4s vs 4.7s). It moves from K3's carried 0.9 to 0.88: below the models
|
|
4478
|
+
// the 4/5 calibration put at 0.9, by less than the raw 41/44 ratio because
|
|
4479
|
+
// the difference is within noise.
|
|
4290
4480
|
reasoningMath: {
|
|
4291
|
-
"gemini-3.
|
|
4481
|
+
"gemini-3.6-flash": 1,
|
|
4292
4482
|
"grok-4.5": 0.93,
|
|
4293
4483
|
"claude-sonnet-5": 0.9,
|
|
4294
4484
|
"deepseek-v4-pro": 0.9,
|
|
4295
|
-
"kimi-k3": 0.
|
|
4485
|
+
"kimi-k3.1-pro": 0.88
|
|
4296
4486
|
},
|
|
4297
4487
|
vision: {
|
|
4298
4488
|
"gemini-3.1-pro": 0.96,
|
|
4299
4489
|
"qwen3.7-max": 0.9,
|
|
4300
|
-
"claude-sonnet-
|
|
4301
|
-
"kimi-k3": 0.9,
|
|
4490
|
+
"claude-sonnet-5.5": 0.9,
|
|
4491
|
+
"kimi-k3.1-pro": 0.9,
|
|
4302
4492
|
"grok-4.3": 0.9
|
|
4303
4493
|
},
|
|
4304
4494
|
// Long-context eligibility is necessary but not sufficient: a provider can
|
|
@@ -4308,38 +4498,49 @@ var AFFINITY = {
|
|
|
4308
4498
|
longContext: {
|
|
4309
4499
|
"gemini-3.1-pro": 1,
|
|
4310
4500
|
"qwen3.7-max": 0.89,
|
|
4311
|
-
"glm-5.
|
|
4312
|
-
"gemini-3.
|
|
4501
|
+
"glm-5.3": 0.89,
|
|
4502
|
+
"gemini-3.6-flash": 0.88,
|
|
4313
4503
|
"deepseek-v4-pro": 0.85
|
|
4314
4504
|
},
|
|
4315
4505
|
// A structured extraction must preserve both the output contract and the
|
|
4316
4506
|
// source-language fields. For Mandarin input the language-native Kimi
|
|
4317
4507
|
// 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.
|
|
4508
|
+
// override, so it still falls back normally when Kimi is unavailable. The
|
|
4509
|
+
// Kimi flagship costs several times the cheap extraction models, so the band
|
|
4510
|
+
// must be wider than the auto affinityFloorGap (0.10) or price alone
|
|
4511
|
+
// re-selects a non-native model for Mandarin input; 0.12 keeps Kimi alone in
|
|
4512
|
+
// the primary band for zh and leaves every other language untouched.
|
|
4513
|
+
//
|
|
4514
|
+
// Only one "kimi-k3.1-pro" value in AFFINITY is measured on K3.1 Pro:
|
|
4515
|
+
// reasoningMath (paired K3 vs K3.1 Pro on 50 MGSM rows, 2026-11-23; see that
|
|
4516
|
+
// band). Every other value (codeAgent, retailStandard, retailHigh,
|
|
4517
|
+
// toolAgent, vision, extractionZh, extraction, chat) is still carried over
|
|
4518
|
+
// from the Kimi flagship it replaced (K3, whose values were in turn carried
|
|
4519
|
+
// from K2.7). Those bands' calibrations could not be rerun locally: the
|
|
4520
|
+
// Terminal-Bench and tau2 trajectories need the RouterBench Franklin host
|
|
4521
|
+
// (and Docker for Terminal-Bench), and no extraction or vision slice has a
|
|
4522
|
+
// runner. K3.1 Pro's other evidence is the 2026-11-23 live probe: 3/3
|
|
4523
|
+
// completions, 0 errors, a well-formed tool call.
|
|
4323
4524
|
extractionZh: {
|
|
4324
|
-
"kimi-k3": 1,
|
|
4325
|
-
"gemini-3.
|
|
4326
|
-
"gemini-
|
|
4525
|
+
"kimi-k3.1-pro": 1,
|
|
4526
|
+
"gemini-3.6-flash": 0.88,
|
|
4527
|
+
"gemini-3.5-flash-lite": 0.88,
|
|
4327
4528
|
"gpt-4o-mini": 0.88,
|
|
4328
4529
|
"claude-sonnet-5": 0.88,
|
|
4329
|
-
"claude-sonnet-
|
|
4530
|
+
"claude-sonnet-5.5": 0.88
|
|
4330
4531
|
},
|
|
4331
4532
|
extraction: {
|
|
4332
|
-
"kimi-k3": 0.9,
|
|
4333
|
-
"gemini-3.
|
|
4334
|
-
"gemini-
|
|
4533
|
+
"kimi-k3.1-pro": 0.9,
|
|
4534
|
+
"gemini-3.6-flash": 0.9,
|
|
4535
|
+
"gemini-3.5-flash-lite": 0.9,
|
|
4335
4536
|
"gpt-4o-mini": 0.9,
|
|
4336
4537
|
"claude-sonnet-5": 0.9,
|
|
4337
|
-
"claude-sonnet-
|
|
4538
|
+
"claude-sonnet-5.5": 0.9
|
|
4338
4539
|
},
|
|
4339
4540
|
chat: {
|
|
4340
|
-
"gemini-3.
|
|
4341
|
-
"gemini-
|
|
4342
|
-
"kimi-k3": 0.86
|
|
4541
|
+
"gemini-3.6-flash": 0.86,
|
|
4542
|
+
"gemini-3.5-flash-lite": 0.86,
|
|
4543
|
+
"kimi-k3.1-pro": 0.86
|
|
4343
4544
|
}
|
|
4344
4545
|
};
|
|
4345
4546
|
function affinityBand(features) {
|
|
@@ -4404,9 +4605,9 @@ function evidenceCandidates(task) {
|
|
|
4404
4605
|
return [
|
|
4405
4606
|
"openai/gpt-5.3-codex",
|
|
4406
4607
|
"anthropic/claude-sonnet-5",
|
|
4407
|
-
"openai/gpt-5-
|
|
4408
|
-
"google/gemini-3.
|
|
4409
|
-
"moonshot/kimi-k3",
|
|
4608
|
+
"openai/gpt-5.6-luna",
|
|
4609
|
+
"google/gemini-3.6-flash",
|
|
4610
|
+
"moonshot/kimi-k3.1-pro",
|
|
4410
4611
|
"deepseek/deepseek-v4-pro"
|
|
4411
4612
|
];
|
|
4412
4613
|
}
|
|
@@ -4414,12 +4615,12 @@ function evidenceCandidates(task) {
|
|
|
4414
4615
|
return [
|
|
4415
4616
|
"anthropic/claude-sonnet-5",
|
|
4416
4617
|
"anthropic/claude-opus-5",
|
|
4417
|
-
"openai/gpt-5-
|
|
4618
|
+
"openai/gpt-5.6-luna",
|
|
4418
4619
|
"openai/gpt-4.1",
|
|
4419
4620
|
"openai/gpt-4o-mini",
|
|
4420
|
-
"google/gemini-3.
|
|
4621
|
+
"google/gemini-3.6-flash",
|
|
4421
4622
|
"openai/gpt-5.3-codex",
|
|
4422
|
-
"moonshot/kimi-k3",
|
|
4623
|
+
"moonshot/kimi-k3.1-pro",
|
|
4423
4624
|
"deepseek/deepseek-v4-pro"
|
|
4424
4625
|
];
|
|
4425
4626
|
}
|
|
@@ -4428,11 +4629,11 @@ function evidenceCandidates(task) {
|
|
|
4428
4629
|
"anthropic/claude-opus-5",
|
|
4429
4630
|
"anthropic/claude-opus-4.8",
|
|
4430
4631
|
"anthropic/claude-sonnet-5",
|
|
4431
|
-
"openai/gpt-5-
|
|
4632
|
+
"openai/gpt-5.6-luna",
|
|
4432
4633
|
"openai/gpt-4.1",
|
|
4433
4634
|
"openai/gpt-4o-mini",
|
|
4434
4635
|
"xai/grok-4.5",
|
|
4435
|
-
"google/gemini-3.
|
|
4636
|
+
"google/gemini-3.6-flash",
|
|
4436
4637
|
"deepseek/deepseek-v4-pro"
|
|
4437
4638
|
];
|
|
4438
4639
|
}
|
|
@@ -4441,29 +4642,29 @@ function evidenceCandidates(task) {
|
|
|
4441
4642
|
"google/gemini-3.1-pro",
|
|
4442
4643
|
"deepseek/deepseek-v4-pro",
|
|
4443
4644
|
"qwen/qwen3.7-max",
|
|
4444
|
-
"zai/glm-5.
|
|
4445
|
-
"google/gemini-3.
|
|
4645
|
+
"zai/glm-5.3",
|
|
4646
|
+
"google/gemini-3.6-flash"
|
|
4446
4647
|
];
|
|
4447
4648
|
}
|
|
4448
4649
|
if (task === "reasoning_mcq") {
|
|
4449
4650
|
return [
|
|
4450
4651
|
"google/gemini-3-flash-preview",
|
|
4451
|
-
"google/gemini-3.
|
|
4652
|
+
"google/gemini-3.6-flash",
|
|
4452
4653
|
"xai/grok-4.5",
|
|
4453
4654
|
"anthropic/claude-sonnet-5",
|
|
4454
4655
|
"deepseek/deepseek-v4-pro"
|
|
4455
4656
|
];
|
|
4456
4657
|
}
|
|
4457
4658
|
if (task === "extraction") {
|
|
4458
|
-
return ["moonshot/kimi-k3", "google/gemini-3.
|
|
4659
|
+
return ["moonshot/kimi-k3.1-pro", "google/gemini-3.6-flash", "anthropic/claude-sonnet-5"];
|
|
4459
4660
|
}
|
|
4460
4661
|
if (task === "reasoning_math") {
|
|
4461
4662
|
return [
|
|
4462
|
-
"google/gemini-3.
|
|
4663
|
+
"google/gemini-3.6-flash",
|
|
4463
4664
|
"xai/grok-4.5",
|
|
4464
4665
|
"anthropic/claude-sonnet-5",
|
|
4465
4666
|
"deepseek/deepseek-v4-pro",
|
|
4466
|
-
"moonshot/kimi-k3"
|
|
4667
|
+
"moonshot/kimi-k3.1-pro"
|
|
4467
4668
|
];
|
|
4468
4669
|
}
|
|
4469
4670
|
return [];
|
|
@@ -4474,11 +4675,15 @@ var VERIFIED_TOOL_FALLBACKS = [
|
|
|
4474
4675
|
"anthropic/claude-sonnet-5.5",
|
|
4475
4676
|
"deepseek/deepseek-v4.1-flash",
|
|
4476
4677
|
"google/gemini-3.8-flash",
|
|
4678
|
+
"google/gemini-4-argon",
|
|
4679
|
+
"google/gemini-4-carbon",
|
|
4680
|
+
"google/gemini-4-hydrogen",
|
|
4681
|
+
"google/gemini-4-neon",
|
|
4477
4682
|
"openai/gpt-5.1",
|
|
4478
|
-
"openai/gpt-6-
|
|
4683
|
+
"openai/gpt-5.6-luna-pro",
|
|
4479
4684
|
"openai/gpt-6-luna",
|
|
4480
|
-
"openai/gpt-6-
|
|
4481
|
-
"openai/gpt-6.
|
|
4685
|
+
"openai/gpt-6.2-astra",
|
|
4686
|
+
"openai/gpt-6.2-sol",
|
|
4482
4687
|
"xai/grok-4.6",
|
|
4483
4688
|
"xai/grok-4.7",
|
|
4484
4689
|
"xiaomi/mimo-v2.5"
|
|
@@ -4611,8 +4816,8 @@ var PortfolioStrategy = class {
|
|
|
4611
4816
|
const scoredModels = rankedEntries.map((item) => item.model);
|
|
4612
4817
|
const webResearchFallbackOrder = [
|
|
4613
4818
|
"anthropic/claude-sonnet-5",
|
|
4614
|
-
"openai/gpt-5-
|
|
4615
|
-
"google/gemini-3.
|
|
4819
|
+
"openai/gpt-5.6-luna",
|
|
4820
|
+
"google/gemini-3.6-flash",
|
|
4616
4821
|
"anthropic/claude-opus-5",
|
|
4617
4822
|
"anthropic/claude-opus-4.8",
|
|
4618
4823
|
"openai/gpt-5.3-codex"
|
|
@@ -5242,7 +5447,7 @@ function getCostSummary() {
|
|
|
5242
5447
|
}
|
|
5243
5448
|
|
|
5244
5449
|
// src/version.ts
|
|
5245
|
-
var SDK_VERSION = "4.
|
|
5450
|
+
var SDK_VERSION = "4.5.1";
|
|
5246
5451
|
var USER_AGENT = `blockrun-ts/${SDK_VERSION}`;
|
|
5247
5452
|
|
|
5248
5453
|
// src/client.ts
|
|
@@ -5349,7 +5554,7 @@ var LLMClient = class _LLMClient {
|
|
|
5349
5554
|
/**
|
|
5350
5555
|
* Simple 1-line chat interface.
|
|
5351
5556
|
*
|
|
5352
|
-
* @param model - Model ID (e.g., 'openai/gpt-5.2', 'anthropic/claude-sonnet-
|
|
5557
|
+
* @param model - Model ID (e.g., 'openai/gpt-5.2', 'anthropic/claude-sonnet-5.5')
|
|
5353
5558
|
* @param prompt - User message
|
|
5354
5559
|
* @param options - Optional chat parameters
|
|
5355
5560
|
* @returns Assistant's response text
|
|
@@ -5420,9 +5625,9 @@ var LLMClient = class _LLMClient {
|
|
|
5420
5625
|
* ```ts
|
|
5421
5626
|
* const result = await client.smartChat('What is 2+2?');
|
|
5422
5627
|
* console.log(result.response); // '4'
|
|
5423
|
-
* console.log(result.model); // 'google/gemini-3.
|
|
5628
|
+
* console.log(result.model); // 'google/gemini-3.6-flash'
|
|
5424
5629
|
* console.log(result.routing.method); // 'portfolio'
|
|
5425
|
-
* console.log(result.routing.savings); // 0.
|
|
5630
|
+
* console.log(result.routing.savings); // 0.84 (84% savings)
|
|
5426
5631
|
* ```
|
|
5427
5632
|
*
|
|
5428
5633
|
* @example With routing profile
|
|
@@ -9715,7 +9920,7 @@ var BlockrunClient = class {
|
|
|
9715
9920
|
*
|
|
9716
9921
|
* Example — streaming chat:
|
|
9717
9922
|
* for await (const chunk of br.stream<ChatChunk>("/v1/chat/completions", {
|
|
9718
|
-
* model: "anthropic/claude-sonnet-
|
|
9923
|
+
* model: "anthropic/claude-sonnet-5.5",
|
|
9719
9924
|
* messages: [{ role: "user", content: "Hi" }],
|
|
9720
9925
|
* stream: true,
|
|
9721
9926
|
* })) {
|