mirror of
https://github.com/JimLiu/baoyu-skills.git
synced 2026-07-12 05:51:44 +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 === "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(
|
||||
|
||||
Reference in New Issue
Block a user