Skip to content

Commit 7b921d5

Browse files
committed
Reenalbe fireworks
1 parent 2f3b772 commit 7b921d5

File tree

1 file changed

+2
-12
lines changed
  • web/src/app/api/v1/chat/completions

1 file changed

+2
-12
lines changed

web/src/app/api/v1/chat/completions/_post.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,7 @@ export async function postChatCompletions(params: {
370370
// SiliconFlow, CanopyWave, and Fireworks TEMPORARILY DISABLED: route through OpenRouter
371371
const useSiliconFlow = false // isSiliconFlowModel(typedBody.model)
372372
const useCanopyWave = false // isCanopyWaveModel(typedBody.model)
373-
const useFireworks = false // isFireworksModel(typedBody.model)
374-
375-
// Route minimax models through OpenRouter via SiliconFlow provider
376-
if (isSiliconFlowModel(typedBody.model)) {
377-
typedBody.provider = { ...typedBody.provider, only: ['siliconflow/fp8'] }
378-
}
373+
const useFireworks = isFireworksModel(typedBody.model)
379374
const stream = useSiliconFlow
380375
? await handleSiliconFlowStream({
381376
body: typedBody,
@@ -441,12 +436,7 @@ export async function postChatCompletions(params: {
441436
const model = typedBody.model
442437
const useSiliconFlow = false // isSiliconFlowModel(model)
443438
const useCanopyWave = false // isCanopyWaveModel(model)
444-
const useFireworks = false // isFireworksModel(model)
445-
446-
// Route minimax models through OpenRouter via SiliconFlow provider
447-
if (isSiliconFlowModel(model)) {
448-
typedBody.provider = { ...typedBody.provider, only: ['siliconflow/fp8'] }
449-
}
439+
const useFireworks = isFireworksModel(model)
450440
const modelParts = model.split('/')
451441
const shortModelName = modelParts.length > 1 ? modelParts[1] : model
452442
const isOpenAIDirectModel =

0 commit comments

Comments
 (0)