Files
openclaw/extensions/together/models.ts
Peter Steinberger 89d6ce457c refactor(models): build provider catalogs as complete batches (#130564)
* refactor(models): build provider catalogs as complete batches

* refactor(models): decorate owned catalog rows in place
2026-08-26 19:07:24 -07:00

13 lines
694 B
TypeScript

// Together plugin module implements models behavior.
import { buildManifestModelProviderConfig } 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[] = buildManifestModelProviderConfig({
providerId: "together",
catalog: TOGETHER_MANIFEST_CATALOG,
}).models.map((model) => Object.assign(model, { api: "openai-completions" }));