mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-23 15:11:42 +00:00
13 lines
367 B
TypeScript
13 lines
367 B
TypeScript
import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-models";
|
|
import { buildXaiCatalogModels, XAI_BASE_URL } from "./model-definitions.js";
|
|
|
|
export function buildXaiProvider(
|
|
api: ModelProviderConfig["api"] = "openai-completions",
|
|
): ModelProviderConfig {
|
|
return {
|
|
baseUrl: XAI_BASE_URL,
|
|
api,
|
|
models: buildXaiCatalogModels(),
|
|
};
|
|
}
|