Files
36Wisdom/config.yml
T
2026-08-14 14:00:50 +08:00

32 lines
1.2 KiB
YAML
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.
server:
address: ":8080"
openapiPath: "/api.json"
swaggerPath: "/swagger"
logger:
level: "info"
database:
type: "sqlite"
link: "sqlite::@file(data/36wisdom.db)"
cache:
ttl: 300
maxSize: 10000
auth:
secret: "36wisdom-dev-secret-change-in-prod"
expire: 604800
# 离线素材生成(cmd/genasset,仅开发机运行;本机 oMLXQwen3.5-9B-MLX-4bit
genasset:
endpoint: http://127.0.0.1:18080
api_key: wenwu901 # 本机 oMLX 鉴权 keyrag-local model_config 表)
model: Qwen3.5-9B-MLX-4bit
timeout: 600 # 本地 ~5 tok/s,单张 SVG 1-3 分钟
max_tokens: 24576
retries: 3
# 离线 TTS 音频生成(cmd/gentss,仅开发机运行;Edge 朗读 WebSocket
tts:
voice: zh-CN-XiaoxiaoNeural # 中文女声;可换 zh-CN-YunxiNeural / zh-CN-XiaoyiNeural 等
rate: "+0%" # 语速,如 "+10%"
version: "1-143.0.3650.75" # Sec-MS-GEC-VersionChromium 版本号,协议漂移时调)
concurrency: 2 # 并行合成连接数
timeout: 60 # 单句连接/接收超时(秒)
retries: 3 # 网络失败/403 时钟偏差重试次数