Skip to content
Open
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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"scripts": {
"prebuild": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
"build": "tsc -p tsconfig.json",
"test": "bun test/smoke.ts",
"test": "bun test/smoke.ts && bun test/models.ts",
"test:haiku": "bun test/haiku-live.ts",
"prepublishOnly": "npm run build"
},
Expand Down
1 change: 1 addition & 0 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const ALIAS_MODELS: ClaudeModel[] = [
];

const PINNED_MODELS: ClaudeModel[] = [
model("claude-fable-5-1", "Fable 5.1", LIMIT_1M),
model("claude-opus-4-8", "Opus 4.8", LIMIT_1M),
model("claude-sonnet-4-6", "Sonnet 4.6", LIMIT_1M),
model("claude-haiku-4-5", "Haiku 4.5", LIMIT_200K),
Expand Down
17 changes: 17 additions & 0 deletions test/models.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import assert from "node:assert/strict";
import { getClaudeModels } from "../src/models.js";

const models = getClaudeModels();

assert.deepEqual(
models.find((model) => model.id === "claude-fable-5-1"),
{
id: "claude-fable-5-1",
name: "Fable 5.1",
reasoning: true,
contextWindow: 1_000_000,
maxTokens: 128_000,
},
);

console.log("ok — Claude model catalog tests passed");