mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
89d6ce457c
* refactor(models): build provider catalogs as complete batches * refactor(models): decorate owned catalog rows in place
13 lines
694 B
TypeScript
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" }));
|