Files
slogan/config.yml
T

54 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.
database:
default:
name: slogan.db
type: sqlite
debug: false
cache:
ttl: 60
server:
address: :3007
name: slogan
workerId: 1
clientMaxBodySize: 209715200
requestTimeout: 3000
chat:
timeout: 300
max_retries: 3
# 和风天气 API Key(v7,免费版)
weather:
qweather_key: ""
qweather_base: "https://devapi.qweather.com"
# 高德地理编码 Key
geo:
amap_key: ""
amap_base: "https://restapi.amap.com"
# 图像生成供应商配置(空则使用 mock)
imagegen:
supplier: "mock" # mock | wanx
wanx_api_key: ""
wanx_model: "wanx-v2"
# 大模型配置(OpenAI 兼容,如通义/DeepSeek/Kimi
llm:
base_url: "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"
api_key: ""
model_name: "qwen-plus"
max_tokens: 4096
temperature: 0.8
# 支付(虎皮棋聚合支付,key 为空则支付功能降级关闭)
payment:
xunhu_appid: ""
xunhu_appsecret: ""
notify_url: "http://localhost:3007/member/order/notify" # 生产需公网可达
channel: "alipay,wechat"
api_base: "https://api.xunhupay.com"
# 广告激励限频(自然日)
ad:
limit_effect_extra: 2
limit_vip_trial: 1