Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ Two rules govern this file, and both are load-bearing:
1. **These are weak priors, never task-quality labels.** They inform the `speed` and `reliability` terms only. A model is not "better" because it is fast.
2. **Historical numbers are never presented as a current provider SLA.** Hosts are expected to inject fresher observations (see below); the committed snapshot exists so the engine is safe and useful when a catalog is temporarily unavailable.

The repository ships 69 live performance profiles (three samples per model), 9 auditable historical seeds, 84 function-calling probe results, and a built-in snapshot of the 97 text models in the public catalog (2026-11-23 sync). Eleven newly listed models passed a real structured tool-call probe and are admitted as availability fallbacks for tool-required turns. DeepSeek V4 Flash Vision Experimental and Qwen 3.8 Flash did not return a valid tool call and remain fail-closed. GPT-6.1 Sol and DeepSeek V4.1 Flash also passed a structured tool-call probe in the subsequent capability refresh. Gemini 4 Carbon, added 2026-11-11 ahead of its gateway listing, returned its own next tool call through a two-round tool history on both the streaming and non-streaming gateway paths, so it is admitted as a tool fallback too. Kimi K3.1 Pro, which replaced Kimi K3 in every chain and affinity band on 2026-11-23, passed the live profile probe (three completions, no errors, a well-formed tool call); its affinity values are carried over from K3, not measured on K3.1 Pro. Mistral Large 4, Gemini 4 Argon, Hydrogen and Neon, Claude Fable 5.2, and GPT-6.2 Astra and Sol have no probe evidence yet. A model with no probe evidence can serve plain chat but never a tool-required turn.
The repository ships 69 live performance profiles (three samples per model), 9 auditable historical seeds, 84 function-calling probe results, and a built-in snapshot of the 97 text models in the public catalog (2026-11-23 sync). Eleven newly listed models passed a real structured tool-call probe and are admitted as availability fallbacks for tool-required turns. DeepSeek V4 Flash Vision Experimental and Qwen 3.8 Flash did not return a valid tool call and remain fail-closed. GPT-6.1 Sol and DeepSeek V4.1 Flash also passed a structured tool-call probe in the subsequent capability refresh. Gemini 4 Carbon, added 2026-11-11 ahead of its gateway listing, returned its own next tool call through a two-round tool history on both the streaming and non-streaming gateway paths, so it is admitted as a tool fallback too. Kimi K3.1 Pro, which replaced Kimi K3 in every chain and affinity band on 2026-11-23, passed the live profile probe (three completions, no errors, a well-formed tool call); its reasoningMath affinity is measured on K3.1 Pro (paired against K3 on 50 MGSM rows on 2026-11-23: 41/50 vs 44/50 at a 512-token budget, every gap a truncation, 46/50 each when the truncated rows were rerun at 2,048 tokens), and it moves from 0.9 to 0.88. Its other affinity values are still carried over from K3, not measured on K3.1 Pro. Mistral Large 4, Gemini 4 Argon, Hydrogen and Neon, Claude Fable 5.2, and GPT-6.2 Astra and Sol have no probe evidence yet. A model with no probe evidence can serve plain chat but never a tool-required turn.

Passing the function-call probe does **not** promote a model to primary. New tool-capable models are appended after the configured and trajectory-benchmarked candidate chains with neutral task affinity; they can recover an unavailable route immediately (cheapest first outside Premium), while primary promotion still requires an end-to-end agent evaluation.

Expand Down
29 changes: 24 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

80 changes: 24 additions & 56 deletions src/decisions.snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,36 +543,28 @@
"agenticScore": 0,
"candidates": [
"xai/grok-4.5",
"moonshot/kimi-k3.1-pro",
"anthropic/claude-sonnet-5",
"deepseek/deepseek-v4-pro",
"google/gemini-3.5-flash",
"deepseek/deepseek-reasoner",
"xai/grok-4.3",
"qwen/qwen3.7-plus",
"openai/o4-mini",
"openai/o3"
"openai/o3",
"moonshot/kimi-k3.1-pro"
],
"candidateScores": [
{
"model": "xai/grok-4.5",
"score": 0.9006979445576787,
"score": 0.8923646112243454,
"quality": 0.93,
"cost": 1,
"speed": 0.40854206510969565,
"reliability": 1
},
{
"model": "moonshot/kimi-k3.1-pro",
"score": 0.8615113422618537,
"quality": 0.9,
"cost": 0.9966222068248745,
"speed": 0.41599064333394636,
"reliability": 1
},
{
"model": "anthropic/claude-sonnet-5",
"score": 0.8176612595363191,
"score": 0.8051612595363191,
"quality": 0.9,
"cost": 0.6707950805473757,
"speed": 0.44883064339702206,
Expand All @@ -588,7 +580,7 @@
},
{
"model": "google/gemini-3.5-flash",
"score": 0.7754477432793293,
"score": 0.7712810766126627,
"quality": 1,
"cost": 0,
"speed": 0.5421106182761342,
Expand Down Expand Up @@ -864,36 +856,28 @@
"agenticScore": 0,
"candidates": [
"xai/grok-4.5",
"moonshot/kimi-k3.1-pro",
"anthropic/claude-sonnet-5",
"deepseek/deepseek-v4-pro",
"google/gemini-3.5-flash",
"deepseek/deepseek-reasoner",
"xai/grok-4.3",
"qwen/qwen3.7-plus",
"openai/o4-mini",
"openai/o3"
"openai/o3",
"moonshot/kimi-k3.1-pro"
],
"candidateScores": [
{
"model": "xai/grok-4.5",
"score": 0.9006979445576787,
"score": 0.8923646112243454,
"quality": 0.93,
"cost": 1,
"speed": 0.40854206510969565,
"reliability": 1
},
{
"model": "moonshot/kimi-k3.1-pro",
"score": 0.8615257012196644,
"quality": 0.9,
"cost": 0.9967019788127124,
"speed": 0.41599064333394636,
"reliability": 1
},
{
"model": "anthropic/claude-sonnet-5",
"score": 0.8176437096989948,
"score": 0.8051437096989948,
"quality": 0.9,
"cost": 0.6706975814511295,
"speed": 0.44883064339702206,
Expand All @@ -909,7 +893,7 @@
},
{
"model": "google/gemini-3.5-flash",
"score": 0.7754477432793293,
"score": 0.7712810766126627,
"quality": 1,
"cost": 0,
"speed": 0.5421106182761342,
Expand Down Expand Up @@ -1674,8 +1658,8 @@
},
{
"model": "moonshot/kimi-k3.1-pro",
"score": 0.8846532822443596,
"quality": 0.9,
"score": 0.8774532822443595,
"quality": 0.88,
"cost": 0.9966222068248745,
"speed": 0.41599064333394636,
"reliability": 1
Expand Down Expand Up @@ -2025,8 +2009,8 @@
},
{
"model": "moonshot/kimi-k3.1-pro",
"score": 0.8846756184009542,
"quality": 0.9,
"score": 0.8774756184009541,
"quality": 0.88,
"cost": 0.9967019788127124,
"speed": 0.41599064333394636,
"reliability": 1
Expand Down Expand Up @@ -2734,36 +2718,28 @@
"agenticScore": 0,
"candidates": [
"xai/grok-4.5",
"moonshot/kimi-k3.1-pro",
"anthropic/claude-sonnet-5",
"deepseek/deepseek-v4-pro",
"google/gemini-3.5-flash",
"deepseek/deepseek-reasoner",
"xai/grok-4.3",
"qwen/qwen3.7-plus",
"openai/o4-mini",
"openai/o3"
"openai/o3",
"moonshot/kimi-k3.1-pro"
],
"candidateScores": [
{
"model": "xai/grok-4.5",
"score": 0.9006979445576787,
"score": 0.8923646112243454,
"quality": 0.93,
"cost": 1,
"speed": 0.40854206510969565,
"reliability": 1
},
{
"model": "moonshot/kimi-k3.1-pro",
"score": 0.8615113422618537,
"quality": 0.9,
"cost": 0.9966222068248745,
"speed": 0.41599064333394636,
"reliability": 1
},
{
"model": "anthropic/claude-sonnet-5",
"score": 0.8176612595363191,
"score": 0.8051612595363191,
"quality": 0.9,
"cost": 0.6707950805473757,
"speed": 0.44883064339702206,
Expand All @@ -2779,7 +2755,7 @@
},
{
"model": "google/gemini-3.5-flash",
"score": 0.7754477432793293,
"score": 0.7712810766126627,
"quality": 1,
"cost": 0,
"speed": 0.5421106182761342,
Expand Down Expand Up @@ -3055,36 +3031,28 @@
"agenticScore": 0,
"candidates": [
"xai/grok-4.5",
"moonshot/kimi-k3.1-pro",
"anthropic/claude-sonnet-5",
"deepseek/deepseek-v4-pro",
"google/gemini-3.5-flash",
"deepseek/deepseek-reasoner",
"xai/grok-4.3",
"qwen/qwen3.7-plus",
"openai/o4-mini",
"openai/o3"
"openai/o3",
"moonshot/kimi-k3.1-pro"
],
"candidateScores": [
{
"model": "xai/grok-4.5",
"score": 0.9006979445576787,
"score": 0.8923646112243454,
"quality": 0.93,
"cost": 1,
"speed": 0.40854206510969565,
"reliability": 1
},
{
"model": "moonshot/kimi-k3.1-pro",
"score": 0.8615257012196644,
"quality": 0.9,
"cost": 0.9967019788127124,
"speed": 0.41599064333394636,
"reliability": 1
},
{
"model": "anthropic/claude-sonnet-5",
"score": 0.8176437096989948,
"score": 0.8051437096989948,
"quality": 0.9,
"cost": 0.6706975814511295,
"speed": 0.44883064339702206,
Expand All @@ -3100,7 +3068,7 @@
},
{
"model": "google/gemini-3.5-flash",
"score": 0.7754477432793293,
"score": 0.7712810766126627,
"quality": 1,
"cost": 0,
"speed": 0.5421106182761342,
Expand Down
29 changes: 24 additions & 5 deletions src/portfolio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -723,12 +723,25 @@ const AFFINITY = {
// Same calibration, five multilingual MGSM tasks: Gemini 3.5 Flash was 5/5
// with the lowest cost and latency; four current flagships were 4/5 and Kimi
// K2.7 was 3/5.
//
// Kimi K3.1 Pro, paired against Kimi K3 (2026-11-23): all 50 rows of the
// pinned RouterBench MGSM slice (5 per language x 10 languages), the text
// adapter's `Answer: <number>` contract and deterministic grader, 512 output
// tokens, temperature 0, same rows and settings for both. K3 44/50, K3.1 Pro
// 41/50; discordant pairs 5 K3-only vs 2 K3.1-only (not significant). Every
// K3-only win was K3.1 Pro hitting the 512-token cap; the non-truncated
// errors were the same two rows for both. Rerunning the 10 truncated rows at
// 2048 tokens gave 8/10 each (46/50 each overall), so the gap is verbosity at
// the calibration budget, not arithmetic. K3.1 Pro was also slower (p95
// 10.4s vs 4.7s). It moves from K3's carried 0.9 to 0.88: below the models
// the 4/5 calibration put at 0.9, by less than the raw 41/44 ratio because
// the difference is within noise.
reasoningMath: {
"gemini-3.5-flash": 1,
"grok-4.5": 0.93,
"claude-sonnet-5": 0.9,
"deepseek-v4-pro": 0.9,
"kimi-k3.1-pro": 0.9,
"kimi-k3.1-pro": 0.88,
},
vision: {
"gemini-3.1-pro": 0.96,
Expand Down Expand Up @@ -757,10 +770,16 @@ const AFFINITY = {
// re-selects a non-native model for Mandarin input; 0.12 keeps Kimi alone in
// the primary band for zh and leaves every other language untouched.
//
// Every "kimi-k3.1-pro" value in AFFINITY is carried over from the Kimi
// flagship it replaced (K3, whose values were in turn carried from K2.7);
// none is a K3.1 Pro trajectory measurement. K3.1 Pro's own evidence is the
// 2026-11-23 live probe: 3/3 completions, 0 errors, a well-formed tool call.
// Only one "kimi-k3.1-pro" value in AFFINITY is measured on K3.1 Pro:
// reasoningMath (paired K3 vs K3.1 Pro on 50 MGSM rows, 2026-11-23; see that
// band). Every other value (codeAgent, retailStandard, retailHigh,
// toolAgent, vision, extractionZh, extraction, chat) is still carried over
// from the Kimi flagship it replaced (K3, whose values were in turn carried
// from K2.7). Those bands' calibrations could not be rerun locally: the
// Terminal-Bench and tau2 trajectories need the RouterBench Franklin host
// (and Docker for Terminal-Bench), and no extraction or vision slice has a
// runner. K3.1 Pro's other evidence is the 2026-11-23 live probe: 3/3
// completions, 0 errors, a well-formed tool call.
extractionZh: {
"kimi-k3.1-pro": 1,
"gemini-3.5-flash": 0.88,
Expand Down
Loading