From 51336cb3c0db4a778b37ea879a13f3d63fc27020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E6=98=AD=E6=B4=8B?= <1241877130@qq.com> Date: Tue, 10 Mar 2026 11:24:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=9B=BE=E7=89=87=E6=AF=94=E4=BE=8B?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0auto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vector_engine_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector_engine_node.py b/vector_engine_node.py index 72b16f8..6b57614 100644 --- a/vector_engine_node.py +++ b/vector_engine_node.py @@ -121,7 +121,7 @@ class VectorEngineGemini(VectorEngineBase): "multiline": True, "default": "You are an AI assistant skilled in generating images and editing pictures." }), - "aspect_ratio": (["1:1", "2:3", "3:2", "4:3", "3:4", "16:9", "9:16"], { + "aspect_ratio": (["Auto"", 1:1", "2:3", "3:2", "4:3", "3:4", "16:9", "9:16"], { "default": "1:1" }), "image_size": (["1K", "2K", "4K"], { @@ -194,7 +194,7 @@ class VectorEngineGemini(VectorEngineBase): "generationConfig": { "responseModalities": ["TEXT", "IMAGE"], "imageConfig": { - "aspectRatio": aspect_ratio, + "aspectRatio": "" if aspect_ratio == "Auto" else aspect_ratio, "imageSize": image_size } }