Skip to content

Commit c693f1c

Browse files
committed
fix: Remove premature fallback in vercel-ai-gateway model validation
- Pass raw apiConfiguration.vercelAiGatewayModelId to getValidatedModelId() - Remove ?? defaultModelId fallback that bypassed validation logic - Now consistent with all other dynamic providers (openrouter, requesty, etc) - Ensures helper function properly validates undefined cases
1 parent 9da1589 commit c693f1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/ui/hooks/useSelectedModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ function getSelectedModel({
358358
}
359359
case "vercel-ai-gateway": {
360360
const id = getValidatedModelId(
361-
apiConfiguration.vercelAiGatewayModelId ?? defaultModelId,
361+
apiConfiguration.vercelAiGatewayModelId,
362362
routerModels["vercel-ai-gateway"],
363363
defaultModelId,
364364
)

0 commit comments

Comments
 (0)