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
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ Live per-model prices: [blockrun.ai/pricing](https://blockrun.ai/pricing) (agent
| openai/gpt-6-luna | 1M | reasoning, vision, agentic, tools (GPT-6 fast tier) |
| openai/gpt-5.6-luna | 1M | vision, agentic, tools |
| xai/grok-4-1-fast | 131K | tools |
| openai/gpt-5-mini | 200K | tools |
| qwen/qwen3.7-plus | 1M | reasoning, agentic, tools (balanced Qwen) |
| deepseek/deepseek-v4.1-flash | 1M | tools (V4.1 Flash, non-thinking) |
| deepseek/deepseek-chat | 1M | tools (V4.1 Flash chat) |
Expand Down Expand Up @@ -560,7 +559,7 @@ Live per-model prices: [blockrun.ai/pricing](https://blockrun.ai/pricing) (agent
> **Free tier:** <!-- br:models.free -->8<!-- /br:models.free --> open-weight models cost nothing — `/model free` pins the free default (`nemotron-3.5-lightning`, with the other five as fallbacks), `/model eco` opens on it, or pick one directly (e.g., `/model lightning` for 1M-context reasoning, `/model laguna` for fast coding).
>
> **One free model reads images: `free/nemotron-3.5-bolt`.** It got 8 of 8 right on 64×64 solid-colour PNGs across Base and Solana on 2026-11-05, answered by Bolt itself. The rest of the free tier isn't flagged for vision: `nemotron-3-nano-omni` was right 1 of 4 times on Base in August, and only 2 of 8 probes of `nemotron-3-super-120b` reached that model. These failures can arrive as an HTTP 200 with a wrong answer and no error to branch on. Pin `/model vision-free` for free images; otherwise requests carrying an `image_url` route to a paid vision model.
> **Best value:** `gpt-5-nano` and `gemini-2.5-flash-lite` deliver strong results at ~$0.0003/request.
> **Best value:** `gemini-2.5-flash-lite` delivers strong results at ~$0.0003/request.

---

Expand Down
2 changes: 1 addition & 1 deletion dist/cli.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions src/models.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,10 @@ describe("2026-11-24 retirements", () => {
// 2026-12-01: Google retires Gemini 2.5.
"google/gemini-2.5-pro": "google/gemini-3.8-flash",
"google/gemini-2.5-flash": "google/gemini-3.5-flash-lite",
// 2026-12-11: OpenAI shuts down o3 and gpt-5-mini. (gpt-5-nano too, but
// the gateways keep serving it from Azure until 2027-02-09; see below.)
"openai/o3": "openai/gpt-5.4-mini",
"openai/gpt-5-mini": "openai/gpt-5.6-luna",
};

it("marks each retired id with the gateway's redirect target and drops it from the picker", () => {
Expand Down Expand Up @@ -602,6 +606,7 @@ describe("2026-11-24 retirements", () => {
"north-mini-code": "free/laguna-xs-2.1",
gemini: "google/gemini-3.8-flash",
flash: "google/gemini-3.5-flash-lite",
o3: "openai/gpt-5.4-mini",
};
for (const [alias, target] of Object.entries(pins)) {
expect(resolveModelAlias(alias), alias).toBe(target);
Expand All @@ -615,6 +620,20 @@ describe("2026-11-24 retirements", () => {
expect(stale).toEqual([]);
});

it("keeps the gpt-5-nano shorthand on gpt-5-nano, the cheapest live answer, until 2027-02-09", () => {
// Owner decision 2026-11-24: the gateways do NOT redirect gpt-5-nano on
// 2026-12-11. Azure serves it at $0.05/$0.40 until 2027-02-09, and every
// live OpenAI model is dearer on input (gpt-6-luna is $0.10/$0.50).
expect(resolveModelAlias("gpt-5-nano")).toBe("openai/gpt-5-nano");
const nano = BLOCKRUN_MODELS.find((m) => m.id === "openai/gpt-5-nano")!;
expect([nano.inputPrice, nano.outputPrice]).toEqual([0.05, 0.4]);
for (const alt of ["openai/gpt-6-luna", "openai/gpt-5.4-nano"]) {
const m = BLOCKRUN_MODELS.find((x) => x.id === alt)!;
expect(m.inputPrice, alt).toBeGreaterThan(nano.inputPrice);
expect(m.outputPrice, alt).toBeGreaterThan(nano.outputPrice);
}
});

it("keeps the redirected successors priced no higher than what callers signed up for", () => {
// A redirect that raises the bill is a product decision, not a retirement.
const price = (id: string) => BLOCKRUN_MODELS.find((m) => m.id === id)!;
Expand Down
26 changes: 24 additions & 2 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,13 @@ export const MODEL_ALIASES: Record<string, string> = {
"gpt-5.4-pro": "openai/gpt-5.4-pro",
"gpt-5.4-nano": "openai/gpt-5.4-nano",
nano: "openai/gpt-5.4-nano",
"gpt-5-nano": "openai/gpt-5.4-nano",
// gpt-5-nano: OpenAI shuts it down on 2026-12-11, but the gateways keep
// serving it at its own $0.05/$0.40 from Azure until 2027-02-09 (owner
// decision 2026-11-24: every live OpenAI model is dearer on input). So the
// shorthand names it: the cheapest live answer. It used to skip to
// gpt-5.4-nano ($0.20/$1.25), dearer on both axes. Move it with the
// gateways' 2027-02-09 retirement.
"gpt-5-nano": "openai/gpt-5-nano",
codex: "openai/gpt-5.3-codex",
mini: "openai/gpt-4o-mini",
// OpenAI shut down o1, o3-mini and o4-mini on 2026-10-23 (Azure's o-series
Expand All @@ -155,7 +161,10 @@ export const MODEL_ALIASES: Record<string, string> = {
o1: "openai/gpt-5.4-mini",
"openai/o1-mini": "openai/gpt-5.4-mini",
"o1-mini": "openai/gpt-5.4-mini",
o3: "openai/o3",
// OpenAI shuts o3 down on 2026-12-11 (Azure's o3 retired 2026-11-19). The
// gateways redirect it to gpt-5.4-mini at $0.75/$4.50, like the rest of the
// o-series above; the shorthand follows.
o3: "openai/gpt-5.4-mini",
// OpenAI Codex prefix aliases (OpenClaw v2026.4.5 openai-codex/ model ID format)
"openai-codex/gpt-5.4-mini": "openai/gpt-5.4-mini",
"gpt-5.4-mini": "openai/gpt-5.4-mini",
Expand Down Expand Up @@ -760,6 +769,11 @@ export const BLOCKRUN_MODELS: BlockRunModel[] = [
contextWindow: 200000,
maxOutput: 128000,
toolCalling: true,
// RETIRED 2026-12-11 at OpenAI. The gateways redirect it to gpt-5.6-luna
// ($0.20/$1.20) before pricing. Entry kept so explicit pins stay priced;
// off the picker.
deprecated: true,
fallbackModel: "openai/gpt-5.6-luna",
},
{
id: "openai/gpt-5-nano",
Expand All @@ -770,6 +784,9 @@ export const BLOCKRUN_MODELS: BlockRunModel[] = [
contextWindow: 128000,
maxOutput: 128000,
toolCalling: true,
// Off the picker (hidden at the gateways). OpenAI shuts it down on
// 2026-12-11, but the gateways serve it from Azure at this price until
// 2027-02-09, not redirected (owner decision 2026-11-24).
deprecated: true,
fallbackModel: "openai/gpt-5.4-nano",
},
Expand Down Expand Up @@ -1184,6 +1201,11 @@ export const BLOCKRUN_MODELS: BlockRunModel[] = [
maxOutput: 100000,
reasoning: true,
toolCalling: true,
// RETIRED 2026-12-11 at OpenAI (Azure 2026-11-19). The gateways redirect
// it to gpt-5.4-mini ($0.75/$4.50) before pricing. Entry kept so explicit
// pins stay priced; off the picker.
deprecated: true,
fallbackModel: "openai/gpt-5.4-mini",
},
{
id: "openai/o3-mini",
Expand Down
Loading