mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 04:15:48 -06:00
e50f73d331
* fix(onboard): activate media-only provider authentication * refactor(onboard): keep media model defaults plugin-private
24 lines
613 B
TypeScript
24 lines
613 B
TypeScript
// Vydra setup module handles plugin onboarding behavior.
|
|
import type { OpenClawConfig } from "openclaw/plugin-sdk/provider-onboard";
|
|
|
|
const VYDRA_DEFAULT_IMAGE_MODEL_REF = "vydra/grok-imagine";
|
|
|
|
export function applyVydraConfig(cfg: OpenClawConfig): OpenClawConfig {
|
|
if (cfg.agents?.defaults?.mediaModels?.image) {
|
|
return cfg;
|
|
}
|
|
return {
|
|
...cfg,
|
|
agents: {
|
|
...cfg.agents,
|
|
defaults: {
|
|
...cfg.agents?.defaults,
|
|
mediaModels: {
|
|
...cfg.agents?.defaults?.mediaModels,
|
|
image: { primary: VYDRA_DEFAULT_IMAGE_MODEL_REF },
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|