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.
40 lines
817 B
40 lines
817 B
server:
|
|
port: 8080
|
|
mode: debug # debug, release, test
|
|
|
|
database:
|
|
driver: sqlite # sqlite, postgres, mysql
|
|
sqlite:
|
|
path: ./data/health.db
|
|
postgres:
|
|
host: localhost
|
|
port: 5432
|
|
user: postgres
|
|
password: ""
|
|
dbname: health_app
|
|
mysql:
|
|
host: localhost
|
|
port: 3306
|
|
user: root
|
|
password: ""
|
|
dbname: health_app
|
|
|
|
jwt:
|
|
secret: health-ai-secret-key-change-in-production
|
|
expire_hours: 24
|
|
|
|
ai:
|
|
provider: aliyun # openai, aliyun (通义千问)
|
|
max_history_messages: 10
|
|
max_tokens: 2000
|
|
|
|
# OpenAI 配置
|
|
openai:
|
|
api_key: ""
|
|
base_url: "https://api.openai.com/v1"
|
|
model: "gpt-3.5-turbo"
|
|
|
|
# 阿里云通义千问配置
|
|
aliyun:
|
|
api_key: "" # 请填入您的 DashScope API Key
|
|
model: "qwen-turbo" # 可选: qwen-turbo, qwen-plus, qwen-max
|
|
|