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": "Соотношение сторон" } },