2026-07-04 22:51:52 +08:00
|
|
|
{
|
|
|
|
|
"default_generation_model": {
|
2026-07-11 21:50:34 +08:00
|
|
|
"description": "默认生图路由名。generation_provider_route 留空时也使用此值。",
|
2026-07-04 22:51:52 +08:00
|
|
|
"type": "string",
|
|
|
|
|
"default": ""
|
|
|
|
|
},
|
2026-07-11 21:50:34 +08:00
|
|
|
"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
|
|
|
|
|
},
|
2026-07-04 22:51:52 +08:00
|
|
|
"enable_private_companion_integration": {
|
2026-07-06 10:59:28 +08:00
|
|
|
"description": "允许 astrbot_plugin_private_companion 调用 ImageStudio 的穿搭和素材集成接口。",
|
2026-07-04 22:51:52 +08:00
|
|
|
"type": "bool",
|
|
|
|
|
"default": false
|
2026-07-06 10:59:28 +08:00
|
|
|
},
|
|
|
|
|
"database_backend": {
|
|
|
|
|
"description": "数据库后端。auto 默认使用 SQLite;配置 PG 后自动切换;sqlite 强制本地库;postgresql 强制 PG。",
|
|
|
|
|
"type": "string",
|
|
|
|
|
"default": "auto"
|
|
|
|
|
},
|
|
|
|
|
"sqlite_path": {
|
2026-07-11 21:50:34 +08:00
|
|
|
"description": "SQLite 逻辑路径。AstrBot 运行时会把 data/... 映射到 data/plugin_data/astrbot_plugin_imagestudio/...;默认物理落点为该插件数据目录下的 db/imagestudio.db。",
|
2026-07-06 10:59:28 +08:00
|
|
|
"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": ""
|
2026-07-04 22:51:52 +08:00
|
|
|
}
|
|
|
|
|
}
|