From afb38b2af3259a79df188c12b61ef4a52d43e911 Mon Sep 17 00:00:00 2001 From: Passerby1011 <63802758+Passerby1011@users.noreply.github.com> Date: Wed, 12 Mar 2025 22:36:25 +0800 Subject: [PATCH] Update manifest.json --- public/manifest.json | 64 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 56 insertions(+), 8 deletions(-) diff --git a/public/manifest.json b/public/manifest.json index fb9824d..7644f72 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -8,20 +8,68 @@ "parameters": { "type": "object", "properties": { - "prompt": { + "model": { "type": "string", - "description": "The text prompt to generate the image from" + "description": "The model name to use for image generation", + "default": "wanx2.1-t2i-turbo", + "enum": [ + "wanx2.1-t2i-turbo", + "wanx2.1-t2i-plus", + "wanx2.0-t2i-turbo" + ] + }, + "input": { + "type": "object", + "properties": { + "prompt": { + "type": "string", + "description": "Positive prompt describing elements and visual features desired in the generated image. Supports Chinese and English, up to 800 characters" + }, + "negative_prompt": { + "type": "string", + "description": "Negative prompt describing elements you don't want in the image. Supports Chinese and English, up to 500 characters" + } + }, + "required": ["prompt"] + }, + "parameters": { + "type": "object", + "properties": { + "size": { + "type": "string", + "description": "Resolution of the output image. Width and height should be between 768 and 1440 pixels, up to 2 million pixels total", + "default": "1024*1024" + }, + "n": { + "type": "integer", + "description": "Number of images to generate, between 1 and 4", + "minimum": 1, + "maximum": 4, + "default": 1 + }, + "seed": { + "type": "integer", + "description": "Random seed to control generation randomness. Range: [0, 2147483647]", + "minimum": 0, + "maximum": 2147483647 + }, + "prompt_extend": { + "type": "boolean", + "description": "Whether to enable intelligent prompt rewriting for better results. Only affects positive prompts", + "default": true + } + } } }, - "required": ["prompt"] + "required": ["model","input"] } } ], "meta": { "avatar": "🎉", - "description": "This plugin uses Alibaba's Tongyi Wanxiang model to generate images based on text prompts.", + "description": "该插件利用阿里巴巴的通义万相模型,根据文本提示生成图像。", "tags": ["image", "generator", "tongyi", "wanxiang", "alibaba"], - "title": "Tongyi wanxiang Image Generator" + "title": "通义万相图像生成器" }, "settings": { "type": "object", @@ -30,10 +78,10 @@ "ALIBABA_API_KEY": { "type": "string", "title": "Alibaba API Key", - "description": "The API key to use the Alibaba Tongyi Wanxiang model" + "description": "用于使用阿里通义万相模型的API密钥" } } }, "version": "1", - "systemRole": "This plugin uses Alibaba's Tongyi Wanxiang model to generate images based on text prompts." -} \ No newline at end of file + "systemRole": "该插件利用阿里巴巴的通义万象模型,根据文本提示生成图像。" +}