From c09f941c6c3eb7c9c467e5e5477101aa1f7771f2 Mon Sep 17 00:00:00 2001 From: Luca Steeb Date: Sat, 1 Aug 2026 03:15:41 +0100 Subject: [PATCH 1/2] feat(models): add DeepSeek V4 Flash on Fireworks --- packages/models/src/models/deepseek.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/packages/models/src/models/deepseek.ts b/packages/models/src/models/deepseek.ts index 842acb1068..7da08c9bae 100644 --- a/packages/models/src/models/deepseek.ts +++ b/packages/models/src/models/deepseek.ts @@ -538,6 +538,30 @@ export const deepseekModels = [ tools: true, jsonOutput: false, }, + { + providerId: "fireworks", + // The undated `deepseek-v4-flash` alias still resolves to the launch + // snapshot; `-0731` is the current deployment. + externalId: "accounts/fireworks/models/deepseek-v4-flash-0731", + inputPrice: "0.14e-6", + cachedInputPrice: "0.028e-6", + outputPrice: "0.28e-6", + requestPrice: "0", + // Fireworks prices DeepSeek's Priority tier at 1.5x standard rather + // than the 1.25x that applies to the rest of its catalogue. + serviceTiers: ["priority"], + serviceTierMultipliers: { priority: 1.5 }, + contextSize: 1048576, + maxOutput: 393216, + streaming: true, + reasoning: true, + // Fireworks rejects "minimal" for this model; the rest of the enum + // (plus "none" for non-thinking mode) is accepted. + reasoningEfforts: ["none", "low", "medium", "high", "xhigh", "max"], + vision: false, + tools: true, + jsonOutput: true, + }, ], }, ] as const satisfies ModelDefinition[]; From 3e9e087eb5fff7260f6d3f9c517ae0ffde9e1837 Mon Sep 17 00:00:00 2001 From: smakosh Date: Sat, 1 Aug 2026 12:52:50 +0200 Subject: [PATCH 2/2] feat(models): fireworks v4-flash jsonOutputSchema The PR already verified response_format json_schema works live on this deployment, but without the flag the gateway filters the fireworks mapping out of json_schema requests. Also enables the JSON schema e2e cases for this mapping. Claude-Session: https://claude.ai/code/session_01SmxEcpunGEhCUBQFiqqbS7 --- packages/models/src/models/deepseek.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/models/src/models/deepseek.ts b/packages/models/src/models/deepseek.ts index 7da08c9bae..7453b2bad4 100644 --- a/packages/models/src/models/deepseek.ts +++ b/packages/models/src/models/deepseek.ts @@ -561,6 +561,7 @@ export const deepseekModels = [ vision: false, tools: true, jsonOutput: true, + jsonOutputSchema: true, }, ], },