xAI: add web search credential metadata

This commit is contained in:
scoootscooob 2026-03-17 21:49:08 -07:00
parent 5464ad113e
commit 050fa4eb52
1 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,8 @@ export function createXaiWebSearchProvider() {
signupUrl: "https://console.x.ai/",
docsUrl: "https://docs.openclaw.ai/tools/web",
autoDetectOrder: 30,
credentialPath: "tools.web.search.grok.apiKey",
inactiveSecretPaths: ["tools.web.search.grok.apiKey"],
getCredentialValue: (searchConfig?: Record<string, unknown>) =>
getScopedCredentialValue(searchConfig, "grok"),
setCredentialValue: (searchConfigTarget: Record<string, unknown>, value: unknown) =>