Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 8a4c0d5

Browse files
committed
feat(webview): integrate Firmware provider into ApiOptions
- Import Firmware component - Add firmware to PROVIDER_MODEL_CONFIG mapping - Add Firmware component render when selected - Add firmware to PROVIDERS array in constants - Add firmwareApiKey to model refresh debounce dependencies
1 parent 4a36188 commit 8a4c0d5

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

webview-ui/src/components/settings/ApiOptions.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ import {
102102
XAI,
103103
ZAi,
104104
Fireworks,
105+
Firmware,
105106
Featherless,
106107
VercelAiGateway,
107108
DeepInfra,
@@ -263,6 +264,7 @@ const ApiOptions = ({
263264
apiConfiguration?.litellmApiKey,
264265
apiConfiguration?.deepInfraApiKey,
265266
apiConfiguration?.deepInfraBaseUrl,
267+
apiConfiguration?.firmwareApiKey,
266268
customHeaders,
267269
],
268270
)
@@ -368,6 +370,7 @@ const ApiOptions = ({
368370
},
369371
fireworks: { field: "apiModelId", default: fireworksDefaultModelId },
370372
featherless: { field: "apiModelId", default: featherlessDefaultModelId },
373+
firmware: { field: "firmwareModelId" },
371374
"io-intelligence": { field: "ioIntelligenceModelId", default: ioIntelligenceDefaultModelId },
372375
roo: { field: "apiModelId", default: rooDefaultModelId },
373376
"vercel-ai-gateway": { field: "vercelAiGatewayModelId", default: vercelAiGatewayDefaultModelId },
@@ -549,6 +552,18 @@ const ApiOptions = ({
549552
/>
550553
)}
551554

555+
{selectedProvider === "firmware" && (
556+
<Firmware
557+
apiConfiguration={apiConfiguration}
558+
setApiConfigurationField={setApiConfigurationField}
559+
routerModels={routerModels}
560+
refetchRouterModels={refetchRouterModels}
561+
organizationAllowList={organizationAllowList}
562+
modelValidationError={modelValidationError}
563+
simplifySettings={fromWelcomeView}
564+
/>
565+
)}
566+
552567
{selectedProvider === "anthropic" && (
553568
<Anthropic
554569
apiConfiguration={apiConfiguration}

webview-ui/src/components/settings/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export const PROVIDERS = [
7575
{ value: "sambanova", label: "SambaNova", proxy: false },
7676
{ value: "zai", label: "Z.ai", proxy: false },
7777
{ value: "fireworks", label: "Fireworks AI", proxy: false },
78+
{ value: "firmware", label: "Firmware", proxy: false },
7879
{ value: "featherless", label: "Featherless AI", proxy: false },
7980
{ value: "io-intelligence", label: "IO Intelligence", proxy: false },
8081
{ value: "roo", label: "Roo Code Router", proxy: false },

0 commit comments

Comments
 (0)