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