You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
666 B
29 lines
666 B
Name: healthapi-api
|
|
Host: 0.0.0.0
|
|
Port: 8080
|
|
Mode: dev
|
|
Timeout: 300000 # 5分钟超时,用于 AI 流式响应
|
|
|
|
# JWT 认证配置
|
|
Auth:
|
|
AccessSecret: health-ai-secret-key-change-in-production
|
|
AccessExpire: 86400 # 24小时
|
|
|
|
# 数据库配置
|
|
Database:
|
|
Driver: sqlite
|
|
DataSource: ./data/health.db
|
|
|
|
# AI 服务配置
|
|
AI:
|
|
Provider: aliyun
|
|
MaxHistoryMessages: 10
|
|
MaxTokens: 2000
|
|
Aliyun:
|
|
ApiKey: sk-53b4777561624ba98246c7b9990c5e8b
|
|
Model: qwen-plus
|
|
AppID: "" # 可选:百炼应用 ID(与原 server 保持一致,暂不启用)
|
|
OpenAI:
|
|
ApiKey: ${AI_OPENAI_API_KEY}
|
|
BaseUrl: https://api.openai.com/v1
|
|
Model: gpt-3.5-turbo
|
|
|