mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-10 07:11:25 +03:00
fix(stats): merge Cat Jam usage into Reflection Beam (#56025)
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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" },
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user