mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:20:43 +00:00
23 lines
491 B
TypeScript
23 lines
491 B
TypeScript
import type { ProviderPlugin } from "openclaw/plugin-sdk/provider-model-shared";
|
|
|
|
export function createXaiProvider(): ProviderPlugin {
|
|
return {
|
|
id: "xai",
|
|
label: "xAI",
|
|
aliases: ["x-ai"],
|
|
docsPath: "/providers/xai",
|
|
auth: [
|
|
{
|
|
id: "api-key",
|
|
kind: "api_key",
|
|
label: "xAI API key",
|
|
hint: "API key",
|
|
run: async () => ({ profiles: [] }),
|
|
wizard: {
|
|
groupLabel: "xAI (Grok)",
|
|
},
|
|
},
|
|
],
|
|
};
|
|
}
|