import type { OpenClawConfig } from "openclaw/plugin-sdk/provider-onboard"; export const FAL_DEFAULT_IMAGE_MODEL_REF = "fal/fal-ai/flux/dev"; export function applyFalConfig(cfg: OpenClawConfig): OpenClawConfig { if (cfg.agents?.defaults?.imageGenerationModel) { return cfg; } return { ...cfg, agents: { ...cfg.agents, defaults: { ...cfg.agents?.defaults, imageGenerationModel: { primary: FAL_DEFAULT_IMAGE_MODEL_REF, }, }, }, }; }