mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 11:21:34 +00:00
22 lines
906 B
TypeScript
22 lines
906 B
TypeScript
// Together setup module handles plugin onboarding behavior.
|
|
import { readManifestProviderDefaultModelRef } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
import { TOGETHER_BASE_URL, TOGETHER_MODEL_CATALOG } from "./models.js";
|
|
import manifest from "./openclaw.plugin.json" with { type: "json" };
|
|
|
|
export const TOGETHER_DEFAULT_MODEL_REF = readManifestProviderDefaultModelRef(
|
|
manifest,
|
|
"together",
|
|
)!;
|
|
|
|
export const { applyConfig: applyTogetherConfig } = createModelCatalogPresetAppliers<[]>({
|
|
primaryModelRef: TOGETHER_DEFAULT_MODEL_REF,
|
|
resolveParams: () => ({
|
|
providerId: "together",
|
|
api: "openai-completions",
|
|
baseUrl: TOGETHER_BASE_URL,
|
|
catalogModels: structuredClone(TOGETHER_MODEL_CATALOG),
|
|
aliases: [{ modelRef: TOGETHER_DEFAULT_MODEL_REF, alias: "Together AI" }],
|
|
}),
|
|
});
|