152 行
6.8 KiB
JSON
152 行
6.8 KiB
JSON
{
|
|
"default_generation_model": {
|
|
"description": "默认生图路由名。generation_provider_route 留空时也使用此值。",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"generation_provider_id": {
|
|
"description": "OpenAI 兼容生图提供方 ID。",
|
|
"type": "string",
|
|
"default": "imagestudio_default"
|
|
},
|
|
"generation_provider_base_url": {
|
|
"description": "OpenAI 兼容生图 API 根地址,例如 https://api.openai.com。",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"generation_provider_image_endpoint": {
|
|
"description": "生图 endpoint。",
|
|
"type": "string",
|
|
"default": "/v1/images/generations"
|
|
},
|
|
"generation_provider_model": {
|
|
"description": "提供方实际模型 ID;留空时复用默认生图路由名。",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"generation_provider_route": {
|
|
"description": "ImageStudio 模型路由名;留空时复用 default_generation_model。",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"generation_provider_api_key_env_var": {
|
|
"description": "保存 API Key 的环境变量名。无鉴权的本地提供方可留空。",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"generation_provider_timeout_seconds": {
|
|
"description": "生图请求超时秒数。",
|
|
"type": "string",
|
|
"default": "180"
|
|
},
|
|
"vision_provider_id": {
|
|
"description": "素材视觉识别提供方 ID;连接配置与生图 Provider 一致时留空可复用,否则会自动派生独立 ID。",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"vision_provider_base_url": {
|
|
"description": "素材视觉识别 API 根地址;留空时复用生图提供方地址。",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"vision_provider_endpoint": {
|
|
"description": "OpenAI 兼容视觉识别 endpoint。",
|
|
"type": "string",
|
|
"default": "/v1/chat/completions"
|
|
},
|
|
"vision_provider_model": {
|
|
"description": "素材视觉识别使用的真实多模态模型 ID。该字段必须显式配置。",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"vision_provider_route": {
|
|
"description": "ImageStudio 素材视觉识别逻辑路由名。",
|
|
"type": "string",
|
|
"default": "material_vlm"
|
|
},
|
|
"vision_provider_api_key_env_var": {
|
|
"description": "视觉识别 API Key 的环境变量名;留空时复用生图提供方配置。",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"vision_provider_timeout_seconds": {
|
|
"description": "素材视觉识别请求超时秒数。",
|
|
"type": "string",
|
|
"default": "180"
|
|
},
|
|
"vision_provider_enabled": {
|
|
"description": "是否启用素材视觉识别路由。",
|
|
"type": "bool",
|
|
"default": true
|
|
},
|
|
"model_material_recognition": {"description":"素材导入解析使用的 Vision 路由。","type":"string","default":"material_vlm"},
|
|
"model_profile_parse": {"description":"外部角色导入解析使用的文本模型路由。","type":"string","default":""},
|
|
"model_persona_split": {"description":"角色设定拆解使用的文本模型路由。","type":"string","default":""},
|
|
"model_prompt_planning": {"description":"提示词规划与扩写使用的文本模型路由。","type":"string","default":""},
|
|
"model_cross_review_primary": {"description":"候选图交叉审核主 Vision 路由。","type":"string","default":"material_vlm"},
|
|
"model_cross_review_secondary": {"description":"候选图交叉审核复核 Vision 路由。","type":"string","default":"material_vlm"},
|
|
"model_quick_generation": {"description":"快速生图使用的模型路由。","type":"string","default":""},
|
|
"model_portrait_generation": {"description":"头像草稿使用的生图路由。","type":"string","default":""},
|
|
"model_halfbody_generation": {"description":"半身角色图使用的生图路由。","type":"string","default":""},
|
|
"model_fullbody_generation": {"description":"全身角色图使用的生图路由。","type":"string","default":""},
|
|
"model_sheet_generation": {"description":"设定图与姿势图使用的生图路由。","type":"string","default":""},
|
|
"model_hires_fix": {"description":"高清修复使用的生图路由。","type":"string","default":""},
|
|
"chat_group_allowlist": {"description":"允许使用 ImageStudio 聊天工作流的群聊 ID 白名单。","type":"list","default":[]},
|
|
"chat_user_allowlist": {"description":"允许使用 ImageStudio 聊天功能的用户 ID 白名单。","type":"list","default":[]},
|
|
"chat_user_concurrency_limit": {"description":"单个聊天用户同时运行的生成任务上限。","type":"int","default":2},
|
|
"chat_group_concurrency_limit": {"description":"单个群聊同时运行的生成任务上限。","type":"int","default":5},
|
|
"chat_daily_user_generation_limit": {"description":"单个用户每日聊天生成次数上限。","type":"int","default":30},
|
|
"chat_daily_group_generation_limit": {"description":"单个群聊每日聊天生成次数上限。","type":"int","default":100},
|
|
"chat_allow_2k": {"description":"允许聊天命令申请 2K 图片。","type":"bool","default":true},
|
|
"chat_allow_4k": {"description":"允许聊天命令申请 4K 图片。","type":"bool","default":false},
|
|
"enable_private_companion_integration": {
|
|
"description": "允许 astrbot_plugin_private_companion 调用 ImageStudio 的穿搭和素材集成接口。",
|
|
"type": "bool",
|
|
"default": false
|
|
},
|
|
"database_backend": {
|
|
"description": "数据库后端。auto 默认使用 SQLite;配置 PG 后自动切换;sqlite 强制本地库;postgresql 强制 PG。",
|
|
"type": "string",
|
|
"default": "auto"
|
|
},
|
|
"sqlite_path": {
|
|
"description": "SQLite 逻辑路径。AstrBot 运行时会把 data/... 映射到 data/plugin_data/astrbot_plugin_imagestudio/...;默认物理落点为该插件数据目录下的 db/imagestudio.db。",
|
|
"type": "string",
|
|
"default": "data/db/imagestudio.db"
|
|
},
|
|
"postgresql_enabled": {
|
|
"description": "启用 PostgreSQL。填写 DSN 或主机/库名/用户后也会自动按 PG 配置运行。",
|
|
"type": "bool",
|
|
"default": false
|
|
},
|
|
"postgresql_dsn": {
|
|
"description": "PostgreSQL DSN,优先级高于下面的主机、端口、库名、用户和密码。",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"postgresql_host": {
|
|
"description": "PostgreSQL 主机地址。不使用 DSN 时填写。",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"postgresql_port": {
|
|
"description": "PostgreSQL 端口。不使用 DSN 时填写。",
|
|
"type": "string",
|
|
"default": "5432"
|
|
},
|
|
"postgresql_database": {
|
|
"description": "PostgreSQL 数据库名。不使用 DSN 时填写。",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"postgresql_user": {
|
|
"description": "PostgreSQL 用户名。不使用 DSN 时填写。",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"postgresql_password": {
|
|
"description": "PostgreSQL 密码。不使用 DSN 时填写。",
|
|
"type": "string",
|
|
"default": ""
|
|
}
|
|
}
|