server: port: 9090 mode: debug # debug | release mysql: host: 127.0.0.1 port: 3306 user: root password: root database: pets charset: utf8mb4 minio: endpoint: 127.0.0.1:9000 access_key: sundynix secret_key: sundynix bucket: pets use_ssl: false public_base_url: http://127.0.0.1:9000 # 拼接可访问的对象 URL jwt: secret: change-me-to-a-long-random-string # 生产用 PETS_JWT_SECRET 覆盖 wechat: app_id: your-wechat-app-id app_secret: your-wechat-app-secret # 敏感凭证:生产用 PETS_WECHAT_APP_SECRET 环境变量覆盖 auth: dev_login: true # 仍保留 Mock 登录便于本地 curl 调试;上线可置 false 只留微信登录 admin: username: sundynix password: change-me # 启动时若无同名管理员则 seed 此账号 ai: enabled: false # false 时全部走规则化文案(不烧 token);接大模型改 true provider: openai # openai 兼容协议,适配 DeepSeek/Qwen(兼容模式)/Gemini(兼容端点)等 base_url: https://api.deepseek.com # 换供应商只改这里 + model api_key: your-ai-api-key # 敏感:生产用 PETS_AI_API_KEY 环境变量覆盖 model: deepseek-chat temperature: 0.6 max_tokens: 1024 timeout_sec: 30