Files
openclaw/extensions/meta/models.ts
Peter Steinberger e30217d25c refactor(providers): shared manifest row builder and fleet default-model adoption (#113879)
* feat(plugin-sdk): add manifest model row builder

* refactor(providers): share manifest model row building

* refactor(providers): source defaults from manifests

* refactor(providers): drop unconsumed builder aliases

* fix(providers): keep Cohere catalog internal
2026-07-25 15:00:02 -07:00

21 lines
888 B
TypeScript

/**
* Meta model catalog helpers derived from the plugin manifest.
*/
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 META_MANIFEST_CATALOG = manifest.modelCatalog.providers["meta"];
/** Base URL for Meta OpenAI-compatible inference. */
export const META_BASE_URL = META_MANIFEST_CATALOG.baseUrl;
/** Meta model catalog entries from the plugin manifest. */
export const META_MODEL_CATALOG = META_MANIFEST_CATALOG.models;
/** Builds normalized Meta catalog model definitions. */
export function buildMetaCatalogModels(): ModelDefinitionConfig[] {
return META_MODEL_CATALOG.map(
buildManifestModelDefinition({ providerId: "meta", catalog: META_MANIFEST_CATALOG }),
);
}