Skip to content

Commit 06c9728

Browse files
committed
test(xai): declare the web-search field capability in the raw streaming config
1 parent 2b988b3 commit 06c9728

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎tests/server-xai-responses-streaming.test.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ function config(): OcxConfig {
5656
baseUrl: "https://api.x.ai/v1",
5757
authMode: "oauth",
5858
models: ["grok-4.6"],
59-
modelAdapters: { "grok-4.6": "openai-responses" },
60-
modelSupportsServiceTier: { "grok-4.6": false },
59+
modelAdapters: { "grok-4.6": "openai-responses" },
60+
modelSupportsServiceTier: { "grok-4.6": false },
61+
// Raw test config bypasses registry enrichment; production xai providers get
62+
// this denial from the registry entry (see derive.ts enrichProviderFromRegistry).
63+
supportsOpenAiWebSearchToolFields: false,
6164
},
6265
},
6366
} as OcxConfig;

0 commit comments

Comments
 (0)