Files
openclaw/extensions/vydra/onboard.ts
2026-04-06 02:21:51 +01:00

22 lines
514 B
TypeScript

import type { OpenClawConfig } from "openclaw/plugin-sdk/provider-onboard";
export const VYDRA_DEFAULT_IMAGE_MODEL_REF = "vydra/grok-imagine";
export function applyVydraConfig(cfg: OpenClawConfig): OpenClawConfig {
if (cfg.agents?.defaults?.imageGenerationModel) {
return cfg;
}
return {
...cfg,
agents: {
...cfg.agents,
defaults: {
...cfg.agents?.defaults,
imageGenerationModel: {
primary: VYDRA_DEFAULT_IMAGE_MODEL_REF,
},
},
},
};
}