You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
509 B
TypeScript
22 lines
509 B
TypeScript
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,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|