chore: 更新配置文件和环境变量示例
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
35
.env.example
35
.env.example
@@ -1,11 +1,30 @@
|
||||
# JWT 配置
|
||||
JWT_SECRET=your-secret-key-change-in-production
|
||||
# ========================================
|
||||
# X-Agents 全局配置文件
|
||||
# ========================================
|
||||
# 将此文件复制为 .env 后修改配置
|
||||
|
||||
# LLM 提供商 (openai / anthropic)
|
||||
LLM_PROVIDER=openai
|
||||
# ========================================
|
||||
# Go 后端配置
|
||||
# ========================================
|
||||
GO_PORT=8082
|
||||
GO_DATABASE_TYPE=mysql # 可选值: mysql, sqlite
|
||||
GO_DATABASE_HOST=localhost
|
||||
GO_DATABASE_PORT=6036
|
||||
GO_DATABASE_NAME=x_agents
|
||||
GO_DATABASE_USER=root
|
||||
GO_DATABASE_PASSWORD=
|
||||
GO_SQLITE_PATH=./data/x_agents.db # SQLite 数据库文件路径
|
||||
|
||||
# OpenAI API Key
|
||||
OPENAI_API_KEY=your-openai-api-key
|
||||
# ========================================
|
||||
# Python Agent 配置
|
||||
# ========================================
|
||||
PYTHON_PORT=8001
|
||||
PYTHON_WORKSPACE=./workspace
|
||||
PYTHON_LLM_PROVIDER=openai
|
||||
PYTHON_LLM_API_KEY=
|
||||
PYTHON_LLM_MODEL=gpt-4o
|
||||
|
||||
# Anthropic API Key
|
||||
ANTHROPIC_API_KEY=your-anthropic-api-key
|
||||
# ========================================
|
||||
# Web 前端配置
|
||||
# ========================================
|
||||
WEB_PORT=5173
|
||||
|
||||
Reference in New Issue
Block a user