Skip to content

Commit cfa5ba7

Browse files
fix(stats): canonicalize DeepSeek Flash usage (#48373)
1 parent 45a2ed9 commit cfa5ba7

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/stats/core/src/domain/inference.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ describe("inference stat normalization", () => {
3939
})
4040

4141
test("merges renamed models under their current name", () => {
42+
expect(statModel("deepseek-flash", "")).toBe("deepseek-v4.1-flash")
4243
expect(statModel("x-preview-f", "")).toBe("ox-alpha")
4344
expect(statModel("xiaomi/mimo-v2.5", "")).toBe("mimo-v2.5")
4445
expect(toModelAggregate(aggregate("x-preview-f", "openai"))).toMatchObject([

‎packages/stats/core/src/domain/model-normalization.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const MODEL_AUTHOR_RULES = [
1414
] as const
1515
export const EXCLUDED_MODELS = new Set(["alpha-gpt-next"])
1616
export const MODEL_NAME_ALIASES: Record<string, string> = {
17+
"deepseek-flash": "deepseek-v4.1-flash",
1718
"x-preview-f": "ox-alpha",
1819
"xiaomi/mimo-v2.5": "mimo-v2.5",
1920
}

0 commit comments

Comments
 (0)