Skip to content

Commit 171eb8b

Browse files
committed
fix(webview): drop static xAI models from MODELS_BY_PROVIDER to rely on dynamic discovery; ensure RouterModels test includes xai key
1 parent 2a6e30e commit 171eb8b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
openAiNativeModels,
1313
qwenCodeModels,
1414
vertexModels,
15-
xaiModels,
1615
groqModels,
1716
chutesModels,
1817
sambaNovaModels,
@@ -35,7 +34,6 @@ export const MODELS_BY_PROVIDER: Partial<Record<ProviderName, Record<string, Mod
3534
"openai-native": openAiNativeModels,
3635
"qwen-code": qwenCodeModels,
3736
vertex: vertexModels,
38-
xai: xaiModels,
3937
groq: groqModels,
4038
chutes: chutesModels,
4139
sambanova: sambaNovaModels,

webview-ui/src/utils/__tests__/validate.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ describe("Model Validation Functions", () => {
4444
"vercel-ai-gateway": {},
4545
huggingface: {},
4646
roo: {},
47+
xai: {},
4748
}
4849

4950
const allowAllOrganization: OrganizationAllowList = {

0 commit comments

Comments
 (0)