UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

23 lines (22 loc) 765 B
import { m as readProviderEnvValue } from "../../web-search-provider-common-DisZTXTb.js"; import "../../provider-web-search-9G87vZMY.js"; import { n as resolveFallbackXaiAuth } from "../../tool-auth-shared-DHHTCxMr.js"; //#region extensions/xai/provider-discovery.ts const PROVIDER_ID = "xai"; function resolveXaiSyntheticAuth(config) { const apiKey = resolveFallbackXaiAuth(config)?.apiKey || readProviderEnvValue(["XAI_API_KEY"]); return apiKey ? { apiKey, source: "xAI plugin config", mode: "api-key" } : void 0; } const xaiProviderDiscovery = { id: PROVIDER_ID, label: "xAI", docsPath: "/providers/models", auth: [], resolveSyntheticAuth: ({ config }) => resolveXaiSyntheticAuth(config) }; //#endregion export { xaiProviderDiscovery as default };