"""插件配置(Web 管理后台) env 变量名与字段名对应(大写):WEB_ENABLE / WEB_USERNAME / WEB_PASSWORD / WEB_SECRET_KEY """ from nonebot import get_plugin_config from pydantic import BaseModel class Config(BaseModel): web_enable: bool = True web_username: str = "admin" web_password: str = "galgame" web_secret_key: str = "galgame-card-secret-key" # 图片多模态识别(预留接口,当前未启用;将来接入后置 True) image_vision_enabled: bool = False config = get_plugin_config(Config)