fix(baoyu-image-gen): add agnes to default_model YAML whitelist and remote ref allowlist

This commit is contained in:
Davidlaizz
2026-06-06 05:15:26 +08:00
parent 591614cfa5
commit 7ea2692acd
+3 -2
View File
@@ -499,7 +499,8 @@ export function parseSimpleYaml(yaml: string): Partial<ExtendConfig> {
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(