update:1.更新readme文档
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
<div align="center">
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
@@ -158,7 +158,7 @@ npm run build # 生产构建
|
||||
DATABASE_URL=postgresql+asyncpg://mumuai:your_password@postgres:5432/mumuai_novel
|
||||
POSTGRES_PASSWORD=your_secure_password
|
||||
|
||||
# AI 服务(至少配置一个)
|
||||
# AI 服务
|
||||
OPENAI_API_KEY=your_openai_key
|
||||
OPENAI_BASE_URL=https://api.openai.com/v1
|
||||
DEFAULT_AI_PROVIDER=openai
|
||||
@@ -173,12 +173,6 @@ LOCAL_AUTH_PASSWORD=your_password
|
||||
### 可选配置
|
||||
|
||||
```bash
|
||||
# Gemini
|
||||
GEMINI_API_KEY=your_gemini_key
|
||||
|
||||
# Claude
|
||||
ANTHROPIC_API_KEY=your_claude_key
|
||||
|
||||
# LinuxDO OAuth
|
||||
LINUXDO_CLIENT_ID=your_client_id
|
||||
LINUXDO_CLIENT_SECRET=your_client_secret
|
||||
|
||||
@@ -73,10 +73,6 @@ CORS_ORIGINS=["http://localhost:8000","http://127.0.0.1:8000"]
|
||||
OPENAI_API_KEY=your_openai_api_key_here
|
||||
OPENAI_BASE_URL=https://api.openai.com/v1
|
||||
|
||||
# Anthropic 配置(可选)
|
||||
# ANTHROPIC_API_KEY=your_anthropic_api_key_here
|
||||
# ANTHROPIC_BASE_URL=https://api.anthropic.com
|
||||
|
||||
# 默认 AI 配置
|
||||
DEFAULT_AI_PROVIDER=openai
|
||||
DEFAULT_MODEL=gpt-4o-mini
|
||||
@@ -109,23 +105,3 @@ LOCAL_AUTH_DISPLAY_NAME=本地管理员
|
||||
# ==========================================
|
||||
SESSION_EXPIRE_MINUTES=120
|
||||
SESSION_REFRESH_THRESHOLD_MINUTES=30
|
||||
|
||||
# ==========================================
|
||||
# 部署配置示例
|
||||
# ==========================================
|
||||
|
||||
# Docker 生产环境配置:
|
||||
# POSTGRES_PASSWORD=your_very_secure_password
|
||||
# DATABASE_POOL_SIZE=40
|
||||
# DATABASE_MAX_OVERFLOW=30
|
||||
# DEBUG=false
|
||||
# LOG_LEVEL=WARNING
|
||||
|
||||
# 外网访问配置:
|
||||
# FRONTEND_URL=https://your-domain.com
|
||||
# LINUXDO_REDIRECT_URI=https://your-domain.com/api/auth/callback
|
||||
# APP_PORT=8000
|
||||
|
||||
# 中转 API 配置示例:
|
||||
# OPENAI_BASE_URL=https://api.new-api.com/v1
|
||||
# DEFAULT_MODEL=gpt-4o-mini
|
||||
Reference in New Issue
Block a user