diff --git a/src/utils/editImage.ts b/src/utils/editImage.ts index 2de8f6d..175bc0e 100644 --- a/src/utils/editImage.ts +++ b/src/utils/editImage.ts @@ -86,7 +86,7 @@ export default async (images: Record, directive: string, project systemPrompt: "根据用户提供的具体修改指令,对上传的图片进行智能编辑。", prompt: prompt, imageBase64: base64Images, - aspectRatio: aspectRatio!, + aspectRatio: aspectRatio ? aspectRatio : "16:9", size: "1K", }, apiConfig,