mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-31 20:01:36 +00:00
11 lines
352 B
TypeScript
11 lines
352 B
TypeScript
import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-model-shared";
|
|
import { buildLitellmModelDefinition, LITELLM_BASE_URL } from "./onboard.js";
|
|
|
|
export function buildLitellmProvider(): ModelProviderConfig {
|
|
return {
|
|
baseUrl: LITELLM_BASE_URL,
|
|
api: "openai-completions",
|
|
models: [buildLitellmModelDefinition()],
|
|
};
|
|
}
|