Files
NeoBot/config.toml
K2cr2O1 0bca97424b feat(图片管理): 添加图片尺寸配置支持
在 config.toml 中新增 image_manager 配置块,包含图片高度和宽度设置
修改 ImageManager 类以使用配置中的尺寸,替代硬编码值
添加 ImageManagerModel 配置模型并集成到全局配置中
2026-02-28 16:17:20 +08:00

56 lines
1.2 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# NeoBot 配置文件示例
# 复制此文件并重命名为 config.toml 以使用
# NapCat WebSocket 配置
[napcat_ws]
uri = "ws://114.66.61.199:3001"
# WebSocket 连接地址
token = "KoIAF.mcEHzxrPYF"
# 重连间隔(秒)
reconnect_interval = 5
# Bot 基础配置
[bot]
# 命令前缀列表
command = ["/"]
# 是否忽略自己的消息
ignore_self_message = true
# 权限不足时的消息
permission_denied_message = "权限不足,需要 {permission_name} 权限"
# Redis 配置
[redis]
# Redis 主机地址
host = "101.36.126.55"
# Redis 端口
port = 6379
# Redis 数据库编号
db = 0
# Redis 密码
password = "redis_5fCmnE"
# Docker 配置
[docker]
# Docker 基础 URL可选
base_url = "tcp://101.36.126.55:2376"
# 沙箱镜像名称
sandbox_image = "sanbox:latest"
# 超时时间(秒)
timeout = 10
# 并发限制
concurrency_limit = 5
# 是否验证 TLS
tls_verify = true
# CA 证书路径(可选)
ca_cert_path = "ca/ca.pem"
# 客户端证书路径(可选)
client_cert_path = "ca/cert.pem"
# 客户端密钥路径(可选)
client_key_path = "ca/key.pem"
[image_manager]
# 图片高度
image_height = 1920
# 图片宽度
image_width = 1080