169 行
5.2 KiB
YAML
169 行
5.2 KiB
YAML
plugin:
|
|
name: astrbot_plugin_imagestudio
|
|
display_name: ImageStudio
|
|
version: 1.0.33
|
|
|
|
features:
|
|
quick_profile: true
|
|
workspace: true
|
|
material_library: true
|
|
wardrobe: true
|
|
api_discovery: true
|
|
private_companion_integration: false
|
|
|
|
generation:
|
|
# default_model 是 ImageStudio 路由名;route_name 留空时复用它。
|
|
default_model: ""
|
|
provider:
|
|
provider_id: imagestudio_default
|
|
display_name: ImageStudio default provider
|
|
base_url: ""
|
|
image_endpoint: /v1/images/generations
|
|
model_id: ""
|
|
route_name: ""
|
|
api_key_env_var: ""
|
|
timeout_seconds: 180
|
|
priority: 10
|
|
enabled: true
|
|
|
|
vision:
|
|
# 素材识别路由;provider 中留空的连接字段会复用 generation.provider。
|
|
# 若地址、密钥或超时不同且 provider_id 留空,会自动派生独立 Vision provider ID,避免覆盖生图配置。
|
|
# Vision 模型必须单独填写,不能假定生图模型具备视觉理解能力。
|
|
default_route: material_vlm
|
|
provider:
|
|
provider_id: ""
|
|
display_name: ""
|
|
base_url: ""
|
|
vision_endpoint: /v1/chat/completions
|
|
model_id: ""
|
|
route_name: material_vlm
|
|
api_key_env_var: ""
|
|
timeout_seconds: 180
|
|
priority: 10
|
|
enabled: true
|
|
|
|
# 按功能分配模型路由。留空时回退到 generation.default_model 或 vision.default_route。
|
|
model_assignments:
|
|
material_recognition: material_vlm
|
|
advanced_material_recognition: material_vlm
|
|
advanced_material_validation_generation: ""
|
|
profile_parse: ""
|
|
persona_split: ""
|
|
prompt_planning: ""
|
|
visual_review_routes:
|
|
- material_vlm
|
|
cross_review_primary: material_vlm
|
|
cross_review_secondary: material_vlm
|
|
cross_review_routes:
|
|
- material_vlm
|
|
- material_vlm
|
|
generation_cross_review_primary: ""
|
|
generation_cross_review_secondary: ""
|
|
generation_cross_review_routes: []
|
|
quick_generation: ""
|
|
portrait_generation: ""
|
|
halfbody_generation: ""
|
|
fullbody_generation: ""
|
|
sheet_generation: ""
|
|
hires_fix: ""
|
|
|
|
recognition_prompts:
|
|
default_instruction: >-
|
|
请先判断图片中素材的准确分类,再尽可能完整地提取所有可见事实,包括物品类型、主色与辅色、材质、纹理、结构、轮廓、图案、裁剪、缝线、褶皱、装饰、配件、状态、视角、光照及可复用的设计特征。不要把无法确认的推测写成事实,并明确区分确定信息与低置信度判断。根据识别结果生成一段细节充分、可直接用于生图且能够保留原素材设计的正向提示词,同时生成用于排除错误类别、错误材质、结构畸变、文字、水印和无关背景的负向提示词。仅返回 JSON,字段必须包含 prompt、negative_prompt、tags、confidence、description;tags 应简短、可检索,并包含分类、颜色、材质和关键设计元素。
|
|
category_requirements: []
|
|
|
|
# 进阶素材验证图的独立预算守卫。开启后,每次验证(含自动 NSFW
|
|
# 回退)都会在调用提供方前检查时间窗口内的任务、图片和估算费用。
|
|
advanced_materials:
|
|
cost_budget:
|
|
enabled: false
|
|
days: 30
|
|
max_task_count: null
|
|
max_image_count: null
|
|
max_estimated_cost: null
|
|
price_key: ""
|
|
per_request: 0
|
|
per_image: 0
|
|
per_1k_tokens: 0
|
|
|
|
# 提示词转译、内容审核和普通/NSFW 模型动态分流。
|
|
# 默认只启用本地规则审核;LLM 转译与成人自动分流必须由管理员明确开启。
|
|
prompt_governance:
|
|
translation:
|
|
enabled: false
|
|
model_route: ""
|
|
template_version: "1.0"
|
|
entrypoints:
|
|
web: true
|
|
qq: false
|
|
telegram: false
|
|
discord: false
|
|
api: false
|
|
moderation:
|
|
llm_review_enabled: false
|
|
model_route: ""
|
|
failure_policy: fail_closed
|
|
routing:
|
|
safe_route: ""
|
|
nsfw_route: ""
|
|
adult_auto_route_enabled: false
|
|
entrypoints:
|
|
web: false
|
|
qq: false
|
|
telegram: false
|
|
discord: false
|
|
api: false
|
|
image_moderation:
|
|
enabled: false
|
|
model_route: ""
|
|
retention:
|
|
raw_prompt_days: 30
|
|
translated_prompt_days: 90
|
|
moderation_record_days: 180
|
|
redact_sensitive_logs: true
|
|
|
|
chat_access:
|
|
group_allowlist: []
|
|
user_allowlist: []
|
|
adult_group_allowlist: []
|
|
adult_user_allowlist: []
|
|
user_concurrency_limit: 2
|
|
group_concurrency_limit: 5
|
|
daily_user_generation_limit: 30
|
|
daily_group_generation_limit: 100
|
|
allow_2k: true
|
|
allow_4k: false
|
|
|
|
storage:
|
|
# 这里使用逻辑 data/... 路径;AstrBot 运行时映射到
|
|
# data/plugin_data/astrbot_plugin_imagestudio/...,本地开发仍映射到仓库 data/。
|
|
db_path: data/db/imagestudio.db
|
|
images_path: data/images
|
|
thumbnails_path: data/thumbnails
|
|
materials_path: data/materials
|
|
advanced_materials_path: data/advanced_materials
|
|
styles_path: data/styles
|
|
archives_path: data/archives
|
|
temp_path: data/temp
|
|
|
|
database:
|
|
# auto: 默认使用 SQLite;配置并启用 PostgreSQL 后自动切换
|
|
# sqlite: 强制使用本地 SQLite
|
|
# postgresql: 强制使用 PostgreSQL,驱动或连接配置缺失时会直接报错
|
|
backend: auto
|
|
sqlite:
|
|
path: data/db/imagestudio.db
|
|
postgresql:
|
|
enabled: false
|
|
dsn: ""
|
|
host: ""
|
|
port: 5432
|
|
database: ""
|
|
user: ""
|
|
password: ""
|
|
|
|
security:
|
|
integration_token_set: false
|
|
allowed_integration_plugins:
|
|
- astrbot_plugin_private_companion
|