From 7ea2692acd77a0b5e3451779581fd9a0365dbbb0 Mon Sep 17 00:00:00 2001 From: Davidlaizz <1830579068@qq.com> Date: Sat, 6 Jun 2026 05:15:26 +0800 Subject: [PATCH] fix(baoyu-image-gen): add agnes to default_model YAML whitelist and remote ref allowlist --- skills/baoyu-image-gen/scripts/main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skills/baoyu-image-gen/scripts/main.ts b/skills/baoyu-image-gen/scripts/main.ts index ad646f4..bcc4841 100644 --- a/skills/baoyu-image-gen/scripts/main.ts +++ b/skills/baoyu-image-gen/scripts/main.ts @@ -499,7 +499,8 @@ export function parseSimpleYaml(yaml: string): Partial { key === "jimeng" || key === "seedream" || key === "azure" || - key === "codex-cli" + key === "codex-cli" || + key === "agnes" ) ) { const cleaned = value.replace(/['"]/g, ""); @@ -822,7 +823,7 @@ function isRemoteReferenceImage(refPath: string): boolean { } function shouldAllowRemoteReferenceImages(provider: Provider | null): boolean { - return provider === "dashscope"; + return provider === "dashscope" || provider === "agnes"; } export async function validateReferenceImages(