mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
12 lines
430 B
TypeScript
12 lines
430 B
TypeScript
// Gmi provider module implements model/runtime integration.
|
|
import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-model-shared";
|
|
import { GMI_BASE_URL, GMI_MODEL_CATALOG, buildGmiModelDefinition } from "./models.js";
|
|
|
|
export function buildGmiProvider(): ModelProviderConfig {
|
|
return {
|
|
baseUrl: GMI_BASE_URL,
|
|
api: "openai-completions",
|
|
models: GMI_MODEL_CATALOG.map(buildGmiModelDefinition),
|
|
};
|
|
}
|