mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 11:11:35 +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
941 B
TypeScript
21 lines
941 B
TypeScript
/**
|
|
* Cerebras 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 CEREBRAS_MANIFEST_CATALOG = manifest.modelCatalog.providers.cerebras;
|
|
|
|
/** Base URL for Cerebras OpenAI-compatible inference. */
|
|
export const CEREBRAS_BASE_URL = CEREBRAS_MANIFEST_CATALOG.baseUrl;
|
|
/** Cerebras model catalog entries from the plugin manifest. */
|
|
export const CEREBRAS_MODEL_CATALOG = CEREBRAS_MANIFEST_CATALOG.models;
|
|
|
|
/** Builds normalized Cerebras catalog model definitions. */
|
|
export function buildCerebrasCatalogModels(): ModelDefinitionConfig[] {
|
|
return CEREBRAS_MODEL_CATALOG.map(
|
|
buildManifestModelDefinition({ providerId: "cerebras", catalog: CEREBRAS_MANIFEST_CATALOG }),
|
|
);
|
|
}
|