mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +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
842 B
TypeScript
31 lines
842 B
TypeScript
import { OPENCODE_ZEN_DEFAULT_MODEL_REF } from "openclaw/plugin-sdk/provider-models";
|
|
import {
|
|
applyAgentDefaultModelPrimary,
|
|
withAgentModelAliases,
|
|
type HanzoBotConfig,
|
|
} from "openclaw/plugin-sdk/provider-onboard";
|
|
|
|
export { OPENCODE_ZEN_DEFAULT_MODEL_REF };
|
|
|
|
export function applyOpencodeZenProviderConfig(cfg: HanzoBotConfig): HanzoBotConfig {
|
|
return {
|
|
...cfg,
|
|
agents: {
|
|
...cfg.agents,
|
|
defaults: {
|
|
...cfg.agents?.defaults,
|
|
models: withAgentModelAliases(cfg.agents?.defaults?.models, [
|
|
{ modelRef: OPENCODE_ZEN_DEFAULT_MODEL_REF, alias: "Opus" },
|
|
]),
|
|
},
|
|
},
|
|
};
|
|
}
|
|
|
|
export function applyOpencodeZenConfig(cfg: HanzoBotConfig): HanzoBotConfig {
|
|
return applyAgentDefaultModelPrimary(
|
|
applyOpencodeZenProviderConfig(cfg),
|
|
OPENCODE_ZEN_DEFAULT_MODEL_REF,
|
|
);
|
|
}
|