mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 15:21:34 +00:00
* 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
21 lines
888 B
TypeScript
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 }),
|
|
);
|
|
}
|