mirror of
https://github.com/JimLiu/baoyu-skills.git
synced 2026-07-13 22:29:48 +08:00
fix(baoyu-image-gen): add agnes to default_model YAML whitelist and remote ref allowlist
This commit is contained in:
@@ -499,7 +499,8 @@ export function parseSimpleYaml(yaml: string): Partial<ExtendConfig> {
|
|||||||
key === "jimeng" ||
|
key === "jimeng" ||
|
||||||
key === "seedream" ||
|
key === "seedream" ||
|
||||||
key === "azure" ||
|
key === "azure" ||
|
||||||
key === "codex-cli"
|
key === "codex-cli" ||
|
||||||
|
key === "agnes"
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
const cleaned = value.replace(/['"]/g, "");
|
const cleaned = value.replace(/['"]/g, "");
|
||||||
@@ -822,7 +823,7 @@ function isRemoteReferenceImage(refPath: string): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function shouldAllowRemoteReferenceImages(provider: Provider | null): boolean {
|
function shouldAllowRemoteReferenceImages(provider: Provider | null): boolean {
|
||||||
return provider === "dashscope";
|
return provider === "dashscope" || provider === "agnes";
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function validateReferenceImages(
|
export async function validateReferenceImages(
|
||||||
|
|||||||
Reference in New Issue
Block a user