mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-04 03:31:42 +00:00
15 lines
682 B
TypeScript
15 lines
682 B
TypeScript
// Gmi plugin module implements models behavior.
|
|
import { buildManifestModelDefinition } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
import type { ModelDefinitionConfig } from "openclaw/plugin-sdk/provider-model-shared";
|
|
import manifest from "./openclaw.plugin.json" with { type: "json" };
|
|
|
|
const GMI_MANIFEST_CATALOG = manifest.modelCatalog.providers.gmi;
|
|
export const GMI_BASE_URL = GMI_MANIFEST_CATALOG.baseUrl;
|
|
export const GMI_MODEL_CATALOG: ModelDefinitionConfig[] = GMI_MANIFEST_CATALOG.models.map(
|
|
buildManifestModelDefinition({
|
|
providerId: "gmi",
|
|
catalog: GMI_MANIFEST_CATALOG,
|
|
decorate: (model) => ({ ...model, api: "openai-completions" }),
|
|
}),
|
|
);
|