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
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,47 @@ All notable changes to blockrun-llm will be documented in this file.

## Unreleased

## 1.24.0 — 2026-11-27

### Changed
- **`router_core` re-synced to upstream `@blockrun/router-core` `53fe783`**
(was `273c2af`). All 88 cross-language snapshot decisions match the
TypeScript engine, model and tier included.
- **Retired model ids are routed to their successors.** The gateways
silently redirect a retired id to another model, so a stale id in a chain
meant the router named one model while another answered and was billed.
Every chain now names the model that actually answers:
`gemini-3.5-flash` → `gemini-3.6-flash`, `gemini-2.5-flash` →
`gemini-3.5-flash-lite`, `gemini-2.5-pro` → `gemini-3.8-flash`,
`o4-mini` and `o3` → `gpt-5.4-mini`, `gpt-5-mini` → `gpt-5.6-luna`. Where
the successor already sat in the same chain, the duplicate rung is
dropped, so the order of models served is unchanged. The SIMPLE primary is
now `gemini-3.5-flash-lite`, which has no vision, so a SIMPLE image turn
falls through to the next vision-capable rung. `gpt-5-nano` is still
served (until 2027-02-09) and stays out of every chain.
- **Generation refresh.** Fallback rungs and uncalibrated primaries move to
the same family's newer, same-or-cheaper, tool-verified model:
`claude-sonnet-4.6` → `claude-sonnet-5.5`, `grok-4.5` → `grok-4.7`,
`gpt-5.4-nano` → `gpt-6-luna`, `gpt-5.5` + `gpt-5.4` → one `gpt-6.2-sol`
rung, `claude-opus-4.8` / `4.7` → `claude-opus-5.5` (with `claude-opus-5`
behind it), and the Kimi slot `kimi-k3` → `kimi-k3.1-pro`. Primaries with
measured evidence (Claude Sonnet 5, GPT-4o Mini, Gemini 3.1 Pro) are
unchanged.
- **Premium COMPLEX is now led by Claude Opus 5.5** ($4/$20) instead of
Claude Fable 5 ($10/$50). Fable 5.2 is served on Base only, so it is in no
chain.
- Task-affinity values follow the renamed models. Values measured on the
retired model are carried to its successor and marked as carried, not
re-measured. Kimi K3.1 Pro's math band was measured against K3 on 50 MGSM
rows and sits at 0.88 (K3 was 0.9).
- The tool-call rescue list adds the Gemini 4 line (Argon, Carbon, Hydrogen,
Neon), GPT-6.2 Sol and Astra, and GPT-5.6 Luna Pro, and drops
`gpt-6-sol`, `gpt-6.1-sol` and `gpt-6-astra`.
- The capability snapshot is synced to the 2026-11-27 catalog: newly
tool-verified models are marked tool-capable, and `kimi-k3`, `o1`,
`o3-mini`, `o4-mini` and `cohere/north-mini-code` leave the snapshot.
Model performance profiles are refreshed from upstream.

### Fixed
- **Routing `cost_estimate` includes the platform fee.** blockrun.ai and
sol.blockrun.ai charge per-token paid chat its list rates times
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.23.1
1.24.0
2 changes: 1 addition & 1 deletion blockrun_llm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
create_wallet as generate_wallet, # User-friendly alias
)

__version__ = "1.23.1"
__version__ = "1.24.0"
__all__ = [
"DECISIONS_DEFAULT_MODEL",
"DEFAULT_API_KEY_URL",
Expand Down
2 changes: 1 addition & 1 deletion blockrun_llm/router_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Router Core — deterministic, constraint-first model routing.

Python port of `@blockrun/router-core <https://github.com/BlockRunAI/router-core>`_
(upstream commit ``273c2af``), the same routing engine the TypeScript SDK and
(upstream commit ``53fe783``), the same routing engine the TypeScript SDK and
the BlockRun gateway use. The package is deliberately product-neutral: task
classification, hard capability filtering, portfolio scoring, ordered
fallbacks, and routing configuration. It contains no wallet, gateway client,
Expand Down
232 changes: 145 additions & 87 deletions blockrun_llm/router_core/config.py

Large diffs are not rendered by default.

87 changes: 40 additions & 47 deletions blockrun_llm/router_core/model_capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
product catalog is temporarily unavailable, without importing product code.

GENERATED upstream by ``scripts/sync-model-capabilities.mjs`` from the public
catalog (GET https://blockrun.ai/api/v1/models) on 2026-11-08; ``supports_tools``
catalog (GET https://blockrun.ai/api/v1/models) on 2026-11-27; ``supports_tools``
comes from a live function-calling probe. Re-sync from ``model-capabilities.ts``
rather than editing by hand — a hand edit is lost on the next sync.
"""
Expand All @@ -34,6 +34,12 @@
"supports_tools": True,
"supports_vision": True,
},
"anthropic/claude-fable-5.2": {
"context_window": 1_000_000,
"max_output_tokens": 128_000,
"supports_tools": True,
"supports_vision": True,
},
# 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
Expand Down Expand Up @@ -102,13 +108,6 @@
"supports_tools": True,
"supports_vision": True,
},
# supportsTools: not probed — fails closed
"cohere/north-mini-code": {
"context_window": 256_000,
"max_output_tokens": 16_384,
"supports_tools": False,
"supports_vision": False,
},
# 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
Expand Down Expand Up @@ -193,12 +192,6 @@
"supports_tools": True,
"supports_vision": True,
},
"google/gemini-3.5-flash": {
"context_window": 1_048_576,
"max_output_tokens": 65_536,
"supports_tools": True,
"supports_vision": True,
},
"google/gemini-3.5-flash-lite": {
"context_window": 1_048_576,
"max_output_tokens": 65_536,
Expand All @@ -217,11 +210,28 @@
"supports_tools": True,
"supports_vision": True,
},
# supportsTools: not probed — fails closed
"google/gemini-4-argon": {
"context_window": 1_048_576,
"max_output_tokens": 65_536,
"supports_tools": False,
"supports_tools": True,
"supports_vision": True,
},
"google/gemini-4-carbon": {
"context_window": 1_048_576,
"max_output_tokens": 65_536,
"supports_tools": True,
"supports_vision": True,
},
"google/gemini-4-hydrogen": {
"context_window": 1_048_576,
"max_output_tokens": 65_536,
"supports_tools": True,
"supports_vision": True,
},
"google/gemini-4-neon": {
"context_window": 1_048_576,
"max_output_tokens": 65_536,
"supports_tools": True,
"supports_vision": True,
},
"minimax/minimax-m2.7": {
Expand All @@ -243,19 +253,10 @@
"supports_tools": False,
"supports_vision": True,
},
# absent from the 2026-11-08 listing but still routed — previous entry retained; probe before
# removing
"moonshot/kimi-k3": {
"context_window": 1_048_576,
"max_output_tokens": 65_536,
"supports_tools": True,
"supports_vision": True,
},
# supportsTools: not probed — fails closed
"moonshot/kimi-k3.1-pro": {
"context_window": 1_048_576,
"max_output_tokens": 65_536,
"supports_tools": False,
"supports_tools": True,
"supports_vision": True,
},
# supportsTools: not probed — fails closed
Expand Down Expand Up @@ -298,11 +299,10 @@
"supports_tools": False,
"supports_vision": False,
},
# supportsTools: not probed — fails closed
"nvidia/nemotron-3.5-bolt": {
"context_window": 131_072,
"max_output_tokens": 16_384,
"supports_tools": False,
"supports_tools": True,
"supports_vision": True,
},
# supportsTools: not probed — fails closed
Expand Down Expand Up @@ -426,7 +426,7 @@
"openai/gpt-5.6-luna-pro": {
"context_window": 1_050_000,
"max_output_tokens": 128_000,
"supports_tools": False,
"supports_tools": True,
"supports_vision": True,
},
"openai/gpt-5.6-sol": {
Expand Down Expand Up @@ -477,26 +477,20 @@
"supports_tools": True,
"supports_vision": True,
},
"openai/o1": {
"context_window": 200_000,
"max_output_tokens": 100_000,
"supports_tools": True,
"supports_vision": False,
},
"openai/o3": {
"context_window": 200_000,
"max_output_tokens": 100_000,
"openai/gpt-6.2-astra": {
"context_window": 1_050_000,
"max_output_tokens": 128_000,
"supports_tools": True,
"supports_vision": False,
"supports_vision": True,
},
"openai/o3-mini": {
"context_window": 128_000,
"max_output_tokens": 100_000,
"openai/gpt-6.2-sol": {
"context_window": 1_050_000,
"max_output_tokens": 128_000,
"supports_tools": True,
"supports_vision": False,
"supports_vision": True,
},
"openai/o4-mini": {
"context_window": 128_000,
"openai/o3": {
"context_window": 200_000,
"max_output_tokens": 100_000,
"supports_tools": True,
"supports_vision": False,
Expand All @@ -508,11 +502,10 @@
"supports_tools": False,
"supports_vision": False,
},
# supportsTools: not probed — fails closed
"poolside/laguna-xs-2.1": {
"context_window": 131_072,
"max_output_tokens": 16_384,
"supports_tools": False,
"supports_tools": True,
"supports_vision": False,
},
"qwen/qwen3.7-flash": {
Expand Down
Loading
Loading