Skip to content

Commit 6ca429d

Browse files
committed
fix: update OpenAI component to use tiers array for service tier selection
1 parent d9ec248 commit 6ca429d

File tree

1 file changed

+1
-1
lines changed
  • webview-ui/src/components/settings/providers

1 file changed

+1
-1
lines changed

webview-ui/src/components/settings/providers/OpenAI.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const OpenAI = ({ apiConfiguration, setApiConfigurationField, selectedMod
7676
)}
7777

7878
{(() => {
79-
const allowedTiers = (selectedModelInfo?.allowedServiceTiers || []).filter(
79+
const allowedTiers = (selectedModelInfo?.tiers?.map((t) => t.name).filter(Boolean) || []).filter(
8080
(t) => t === "flex" || t === "priority",
8181
)
8282
if (allowedTiers.length === 0) return null

0 commit comments

Comments
 (0)