From 002a16d259c1d222d2ef604f19117081e9225a51 Mon Sep 17 00:00:00 2001 From: xiamuceer Date: Sun, 23 Nov 2025 14:56:31 +0800 Subject: [PATCH] =?UTF-8?q?update:1.=E6=9B=B4=E6=96=B0readme=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++-------- backend/.env.example | 24 ------------------------ 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 712b682..5ce529d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@
-![Version](https://img.shields.io/badge/version-1.0.0-blue.svg) +![Version](https://img.shields.io/badge/version-1.0.2-blue.svg) ![Python](https://img.shields.io/badge/python-3.11-blue.svg) ![FastAPI](https://img.shields.io/badge/FastAPI-0.109.0-green.svg) ![React](https://img.shields.io/badge/react-18.3.1-blue.svg) @@ -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 diff --git a/backend/.env.example b/backend/.env.example index 6a5c699..d51729d 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -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 \ No newline at end of file