mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 08:31:33 +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
16 lines
728 B
TypeScript
16 lines
728 B
TypeScript
// Together 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 TOGETHER_MANIFEST_CATALOG = manifest.modelCatalog.providers.together;
|
|
export const TOGETHER_BASE_URL = TOGETHER_MANIFEST_CATALOG.baseUrl;
|
|
|
|
export const TOGETHER_MODEL_CATALOG: ModelDefinitionConfig[] = TOGETHER_MANIFEST_CATALOG.models.map(
|
|
buildManifestModelDefinition({
|
|
providerId: "together",
|
|
catalog: TOGETHER_MANIFEST_CATALOG,
|
|
decorate: (model) => ({ ...model, api: "openai-completions" }),
|
|
}),
|
|
);
|