mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-02 00:42:49 +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]>
33 lines
914 B
TypeScript
33 lines
914 B
TypeScript
import {
|
|
applyAgentDefaultModelPrimary,
|
|
type HanzoBotConfig,
|
|
} from "openclaw/plugin-sdk/provider-onboard";
|
|
|
|
export const VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF = "vercel-ai-gateway/anthropic/claude-opus-4.6";
|
|
|
|
export function applyVercelAiGatewayProviderConfig(cfg: HanzoBotConfig): HanzoBotConfig {
|
|
const models = { ...cfg.agents?.defaults?.models };
|
|
models[VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF] = {
|
|
...models[VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF],
|
|
alias: models[VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF]?.alias ?? "Vercel AI Gateway",
|
|
};
|
|
|
|
return {
|
|
...cfg,
|
|
agents: {
|
|
...cfg.agents,
|
|
defaults: {
|
|
...cfg.agents?.defaults,
|
|
models,
|
|
},
|
|
},
|
|
};
|
|
}
|
|
|
|
export function applyVercelAiGatewayConfig(cfg: HanzoBotConfig): HanzoBotConfig {
|
|
return applyAgentDefaultModelPrimary(
|
|
applyVercelAiGatewayProviderConfig(cfg),
|
|
VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF,
|
|
);
|
|
}
|