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
5 changes: 5 additions & 0 deletions packages/stats/core/src/domain/inference.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ describe("inference stat normalization", () => {
expect(statModel("x-preview-f", "")).toBe("glm-5.3-flash")
expect(statModel("ox-alpha", "")).toBe("glm-5.3-flash")
expect(statModel("ox-alpha-free", "")).toBe("glm-5.3-flash")
expect(statModel("cat-jam-free", "")).toBe("beam")
expect(statModel("beam-free", "")).toBe("beam")
expect(RETIRED_STAT_MODELS).toContain("cat-jam")
expect(statProvider("cat-jam-free", "", "unknown")).toBe("reflection")
expect(statProvider("beam-free", "", "unknown")).toBe("reflection")
expect(statModel("glm-5.3-flash-free", "")).toBe("glm-5.3-flash")
expect(statModel("big-pickle", "zhipuai/ox-alpha-free")).toBe("glm-5.3-flash")
expect(statModel("xiaomi/mimo-v2.5", "")).toBe("mimo-v2.5")
Expand Down
2 changes: 2 additions & 0 deletions packages/stats/core/src/domain/model-normalization.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const MODEL_AUTHOR_RULES = [
{ match: "beam", author: "reflection" },
{ match: "claude", author: "anthropic" },
{ match: "gemini", author: "google" },
{ match: "deepseek", author: "deepseek" },
Expand All @@ -20,6 +21,7 @@ export const STEALTH_MODELS = new Set(["exo", "omen-alpha", "space-bunny", "unio
export const FREE_MODELS = new Set(["gpt-5-nano", "grok-code", "big-pickle"])
export const MODEL_NAME_MAX_LENGTH = 256
export const MODEL_NAME_ALIASES: Record<string, string> = {
"cat-jam": "beam",
"deepseek-flash": "deepseek-v4.1-flash",
"deepseek-v4-1-flash-opencode-bo44an": "deepseek-v4.1-flash",
"deepseek-v4-flash-0731": "deepseek-v4-flash",
Expand Down
Loading