mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-01 07:38:30 +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]>
22 lines
509 B
TypeScript
22 lines
509 B
TypeScript
import type { HanzoBotConfig } from "openclaw/plugin-sdk/provider-onboard";
|
|
|
|
export const FAL_DEFAULT_IMAGE_MODEL_REF = "fal/fal-ai/flux/dev";
|
|
|
|
export function applyFalConfig(cfg: HanzoBotConfig): HanzoBotConfig {
|
|
if (cfg.agents?.defaults?.imageGenerationModel) {
|
|
return cfg;
|
|
}
|
|
return {
|
|
...cfg,
|
|
agents: {
|
|
...cfg.agents,
|
|
defaults: {
|
|
...cfg.agents?.defaults,
|
|
imageGenerationModel: {
|
|
primary: FAL_DEFAULT_IMAGE_MODEL_REF,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|