Files
pengxiao ecd5c7ff31 feat: add DeepSeek official API support and capture reasoning content
- Add DeepSeek provider routing: deepseek-chat/deepseek-reasoner use
  api.deepseek.com, other models use SiliconFlow
- Add stream_with_reasoning() using raw OpenAI SDK to capture
  reasoning_content (langchain_openai strips this field)
- RAG chain and conversation chain both use stream_with_reasoning
  for proper reasoning display in thinking models
- Frontend model selector: grouped by provider (DeepSeek official +
  SiliconFlow), default changed to deepseek-chat
- Regenerate message converted to streaming with reasoning capture
- Minor UI: globals.css additions, chat store refactoring

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 12:37:31 +08:00

63 lines
1.6 KiB
Plaintext

# 硅基流动API配置
SILICONFLOW_API_KEY=your-api-key-here
SILICONFLOW_BASE_URL=https://api.siliconflow.cn/v1
SILICONFLOW_MODEL=Qwen/Qwen3-30B-A3B-Thinking-2507
# DeepSeek官方API配置(可选,不配则走硅基流动)
# DEEPSEEK_API_KEY=your-deepseek-api-key-here
DEEPSEEK_BASE_URL=https://api.deepseek.com
# 数据库配置(本地开发默认使用SQLite)
DATABASE_URL=sqlite:///../data/database/course_agent.db
# Docker部署使用PostgreSQL
# DATABASE_URL=postgresql+psycopg://user:password@db:5432/course_agent_db
# JWT配置
SECRET_KEY=your-super-secret-key-change-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30
# 向量数据库配置
VECTOR_STORE_PATH=../runtime/vector_store
EMBEDDING_MODEL=shibing624/text2vec-base-chinese
HF_ENDPOINT=https://hf-mirror.com
# 应用配置
APP_NAME=国土空间规划课程智能体
APP_VERSION=0.1.0
DEBUG=True
HOST=127.0.0.1
PORT=8000
# CORS配置
ALLOWED_ORIGINS=["http://localhost:8001","http://127.0.0.1:8001"]
# 文件上传配置
UPLOAD_DIR=../data/uploads
MAX_FILE_SIZE=10485760
ALLOWED_EXTENSIONS=[".pdf",".docx",".txt",".md"]
# 知识库配置
KNOWLEDGE_BASE_DIR=../data/knowledge_base
ENABLE_FILE_WATCHER=True
# 书籍配置
BOOK_DIR=../data/book
# 图像生成配置
GENERATED_IMAGES_DIR=../runtime/generated_images
IMAGE_GENERATION_TIMEOUT=120
MAX_IMAGE_SIZE=10485760
# 日志配置
LOG_LEVEL=INFO
LOG_FILE=../runtime/logs/app.log
# 前端配置
NEXT_PUBLIC_BACKEND_URL=http://localhost:8000
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXTAUTH_SECRET=your-nextauth-secret-change-in-production
NEXTAUTH_URL=http://localhost:8001