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
33 changes: 12 additions & 21 deletions packages/types/src/__tests__/deepseek-v4-pro.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { basetenModels, deepSeekModels, fireworksModels, opencodeGoModels } from "../providers/index.js"
import { basetenModels, deepSeekModels, opencodeGoModels } from "../providers/index.js"

describe("DeepSeek V4 Pro 0813 provider catalogs", () => {
it.each([
Expand Down Expand Up @@ -55,23 +55,19 @@ describe("DeepSeek V4 Pro 0813 provider catalogs", () => {
})

// Self-hosted providers retain separate IDs for the preview weights and 0813 checkpoint.
it.each([
["Fireworks AI", fireworksModels["accounts/fireworks/models/deepseek-v4-pro"]],
["Baseten", basetenModels["deepseek-ai/DeepSeek-V4-Pro"]],
])("does not apply the API checkpoint label to %s", (_provider, model) => {
expect(model).toBeDefined()
expect("displayName" in model && typeof model.displayName === "string" ? model.displayName : "").not.toContain(
"0813",
)
expect(model?.contextWindow).toBeGreaterThanOrEqual(1_000_000)
})
// (Fireworks models, including pricing, are fetched dynamically from the Fireworks API.)
it.each([["Baseten", basetenModels["deepseek-ai/DeepSeek-V4-Pro"]]])(
"does not apply the API checkpoint label to %s",
(_provider, model) => {
expect(model).toBeDefined()
expect(
"displayName" in model && typeof model.displayName === "string" ? model.displayName : "",
).not.toContain("0813")
expect(model?.contextWindow).toBeGreaterThanOrEqual(1_000_000)
},
)

it.each([
[
"Fireworks AI",
fireworksModels["accounts/fireworks/models/deepseek-v4-pro-0813"],
{ inputPrice: 1.32, outputPrice: 3.96, cacheReadsPrice: 0.044 },
],
[
"Baseten",
basetenModels["deepseek-ai/DeepSeek-V4-Pro-0813"],
Expand All @@ -85,11 +81,6 @@ describe("DeepSeek V4 Pro 0813 provider catalogs", () => {
})

it("keeps preview pricing separate and omits unverified cache-write prices", () => {
expect(fireworksModels["accounts/fireworks/models/deepseek-v4-pro"]).toMatchObject({
inputPrice: 1.74,
outputPrice: 3.48,
cacheReadsPrice: 0.145,
})
expect(basetenModels["deepseek-ai/DeepSeek-V4-Pro"]).toMatchObject({
inputPrice: 1.74,
outputPrice: 3.48,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ describe("provider identifiers", () => {
providerIdentifiers.poe,
providerIdentifiers.deepseek,
providerIdentifiers.moonshot,
providerIdentifiers.fireworks,
providerIdentifiers.opencodeGo,
providerIdentifiers.kenari,
providerIdentifiers.nanogpt,
Expand Down
9 changes: 3 additions & 6 deletions packages/types/src/provider-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
basetenModels,
bedrockModels,
deepSeekModels,
fireworksModels,
friendliModels,
geminiModels,
mistralModels,
Expand Down Expand Up @@ -97,6 +96,7 @@
providerIdentifiers.poe,
providerIdentifiers.deepseek,
providerIdentifiers.moonshot,
providerIdentifiers.fireworks,
providerIdentifiers.opencodeGo,
providerIdentifiers.kenari,
providerIdentifiers.nanogpt,
Expand Down Expand Up @@ -457,11 +457,8 @@
label: "DeepSeek",
models: Object.keys(deepSeekModels),
},
[providerIdentifiers.fireworks]: {
id: providerIdentifiers.fireworks,
label: "Fireworks",
models: Object.keys(fireworksModels),
},
// Fireworks models are fetched dynamically from the Fireworks API.
[providerIdentifiers.fireworks]: { id: providerIdentifiers.fireworks, label: "Fireworks", models: [] },

Check warning on line 461 in packages/types/src/provider-settings.ts

View workflow job for this annotation

GitHub Actions / mutation-diff

Mutation test advisory

packages/types/src/provider-settings.ts:461: 2 mutation test gaps; example: Survived StringLiteral mutant (replacement: ""). See the job summary for the complete list and resolution guidance.
[providerIdentifiers.friendli]: {
id: providerIdentifiers.friendli,
label: "Friendli",
Expand Down
Loading
Loading