From a01935d203ee4f9b1ca9a53234ae1b057962e867 Mon Sep 17 00:00:00 2001 From: Kirill Kirilenko Date: Mon, 9 Mar 2026 02:24:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D1=8C=20=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B8=20=D0=B0=D0=BD=D0=B8=D0=BC=D0=B5-=D0=B8=D0=B7?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B9=209:20.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai_agent.py | 4 +++- prompts/tools.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ai_agent.py b/ai_agent.py index fcd2aae..6a5217b 100644 --- a/ai_agent.py +++ b/ai_agent.py @@ -228,6 +228,7 @@ class AiAgent: "3:4": "portrait_4_3", "16:9": "landscape_16_9", "9:16": "portrait_16_9", + "9:20": "portrait_16_9" } image_size = aspect_ratio_size_map.get(aspect_ratio, "landscape_4_3") print(f"Генерация изображения {image_size}: {prompt}") @@ -263,7 +264,8 @@ class AiAgent: "4:3": (1280, 1024), "3:4": (1024, 1280), "16:9": (1280, 720), - "9:16": (720, 1280) + "9:16": (720, 1280), + "9:20": (720, 1600) } width, height = aspect_ratio_resolution_map.get(aspect_ratio, (1280, 1024)) print(f"Генерация аниме-изображения {width}x{height}:\n+ {prompt}\n- {negative_prompt}") diff --git a/prompts/tools.json b/prompts/tools.json index 0f4fff7..05469f5 100644 --- a/prompts/tools.json +++ b/prompts/tools.json @@ -39,7 +39,7 @@ }, "aspect_ratio": { "type": "string", - "enum": ["1:1", "4:3", "3:4", "16:9", "9:16"], + "enum": ["1:1", "4:3", "3:4", "16:9", "9:16", "9:20"], "description": "Соотношение сторон" } },