-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy path.env.example
More file actions
34 lines (27 loc) · 1.23 KB
/
Copy path.env.example
File metadata and controls
34 lines (27 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# SpringBoot AI Blog 环境变量配置
# 复制此文件为 .env 并填写实际值
# ==========================================
# 数据库配置(必填)
# ==========================================
DB_PASSWORD=your_mysql_password
# ==========================================
# Redis 配置(可选,默认无密码)
# ==========================================
REDIS_PASSWORD=
# ==========================================
# AI 功能配置(可选)
# 如需使用 AI 功能,请配置以下参数
# ==========================================
# OpenAI API Key(支持 OpenAI、Azure、通义千问等兼容 API)
# 获取地址:https://platform.openai.com/api-keys
AI_API_KEY=sk-your-api-key-here
# API 地址(默认 OpenAI,可替换为其他兼容服务)
# 阿里云通义千问:https://dashscope.aliyuncs.com/compatible-mode/v1
# 百度文心一言:https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completions
AI_API_URL=https://api.openai.com/v1/chat/completions
# AI 模型(默认 GPT-3.5,可选 GPT-4 等)
AI_MODEL=gpt-3.5-turbo
# ==========================================
# JVM 参数(可选,用于性能调优)
# ==========================================
JVM_OPTS=-Xmx512m -Xms512m