Skip to content

Commit ecc4916

Browse files
authored
fix(stats): attribute exo usage to an unknown provider (#53621)
1 parent e256433 commit ecc4916

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ describe("inference stat normalization", () => {
8989
expect(statProvider("OMEN-ALPHA-free:global", "gpt-test-model", "test-provider")).toBe("unknown")
9090
expect(statProvider("omen-alpha", "", "test-provider")).toBe("unknown")
9191
expect(statProvider("space-bunny-free", "hidden-route-model", "hidden-provider")).toBe("unknown")
92+
expect(statProvider("exo-free", "gpt-test-model", "hidden-provider")).toBe("unknown")
9293

9394
const spaceBunny = { ...aggregate("space-bunny-free", "hidden-provider"), provider_model: "hidden-route-model" }
9495
expect(toModelAggregate(spaceBunny)).toMatchObject([{ model: "space-bunny", provider: "unknown", requests: 1 }])
@@ -269,7 +270,7 @@ describe("inference stat normalization", () => {
269270
queries.forEach((query) => {
270271
expect(query).toContain("WHERE lower(model) NOT IN ('alpha-gpt-next')")
271272
expect(query).toContain(
272-
"CASE\n WHEN lower(model) IN ('omen-alpha', 'space-bunny', 'union-alpha') THEN 'unknown'\n",
273+
"CASE\n WHEN lower(model) IN ('exo', 'omen-alpha', 'space-bunny', 'union-alpha') THEN 'unknown'\n",
273274
)
274275
expect(query).toContain("= 'opencode-go/union-alpha' THEN 'union-alpha'")
275276
expect(query).toContain("= 'opencode/union-alpha' THEN 'union-alpha'")
@@ -342,7 +343,7 @@ describe("inference stat normalization", () => {
342343
expect(queries[0]?.query).toContain("AND product = 'go'")
343344
expect(queries[0]?.query).toContain("AND lower(model) NOT IN ('alpha-gpt-next')")
344345
expect(queries[0]?.query).toContain(
345-
"CASE\n WHEN lower(model) IN ('omen-alpha', 'space-bunny', 'union-alpha') THEN 'unknown'\n",
346+
"CASE\n WHEN lower(model) IN ('exo', 'omen-alpha', 'space-bunny', 'union-alpha') THEN 'unknown'\n",
346347
)
347348
expect(queries[0]?.query).toContain("= 'opencode-go/union-alpha' THEN 'union-alpha'")
348349
expect(queries[0]?.query).toContain("= 'opencode/union-alpha' THEN 'union-alpha'")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const MODEL_AUTHOR_RULES = [
1616
{ match: "qwen", author: "qwen" },
1717
] as const
1818
export const EXCLUDED_MODELS = new Set(["alpha-gpt-next"])
19-
export const STEALTH_MODELS = new Set(["omen-alpha", "space-bunny", "union-alpha"])
19+
export const STEALTH_MODELS = new Set(["exo", "omen-alpha", "space-bunny", "union-alpha"])
2020
export const FREE_MODELS = new Set(["gpt-5-nano", "grok-code", "big-pickle"])
2121
export const MODEL_NAME_MAX_LENGTH = 256
2222
export const MODEL_NAME_ALIASES: Record<string, string> = {

0 commit comments

Comments
 (0)