mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-01 17:14:58 +00:00
The automated rebrand sed script replaced "OpenClaw" with "Hanzo Bot" (with space) instead of "HanzoBot" in 8,315 TypeScript identifier occurrences across 1,632 files. This fixes all broken class names, type names, function names, and variable names. Co-authored-by: Hanzo Dev <[email protected]>
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
import {
|
|
buildTogetherModelDefinition,
|
|
TOGETHER_BASE_URL,
|
|
TOGETHER_MODEL_CATALOG,
|
|
} from "openclaw/plugin-sdk/provider-models";
|
|
import {
|
|
applyProviderConfigWithModelCatalogPreset,
|
|
type HanzoBotConfig,
|
|
} from "openclaw/plugin-sdk/provider-onboard";
|
|
|
|
export const TOGETHER_DEFAULT_MODEL_REF = "together/moonshotai/Kimi-K2.5";
|
|
|
|
function applyTogetherPreset(cfg: HanzoBotConfig, primaryModelRef?: string): HanzoBotConfig {
|
|
return applyProviderConfigWithModelCatalogPreset(cfg, {
|
|
providerId: "together",
|
|
api: "openai-completions",
|
|
baseUrl: TOGETHER_BASE_URL,
|
|
catalogModels: TOGETHER_MODEL_CATALOG.map(buildTogetherModelDefinition),
|
|
aliases: [{ modelRef: TOGETHER_DEFAULT_MODEL_REF, alias: "Together AI" }],
|
|
primaryModelRef,
|
|
});
|
|
}
|
|
|
|
export function applyTogetherProviderConfig(cfg: HanzoBotConfig): HanzoBotConfig {
|
|
return applyTogetherPreset(cfg);
|
|
}
|
|
|
|
export function applyTogetherConfig(cfg: HanzoBotConfig): HanzoBotConfig {
|
|
return applyTogetherPreset(cfg, TOGETHER_DEFAULT_MODEL_REF);
|
|
}
|