mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-16 03:31:10 +00:00
22 lines
514 B
TypeScript
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,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|