mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 07:40:12 +08:00
1.4 KiB
1.4 KiB
Configuration
Config Files
| File | Purpose |
|---|---|
.env |
API keys, ports, providers |
config/agents.yaml |
LLM parameters (temperature, max_tokens) |
config/main.yaml |
Paths, tools, module settings |
Environment Variables
Required
# LLM
LLM_MODEL=gpt-4o
LLM_API_KEY=your_api_key
LLM_HOST=https://api.openai.com/v1
# Embedding
EMBEDDING_MODEL=text-embedding-3-large
EMBEDDING_API_KEY=your_api_key
EMBEDDING_HOST=https://api.openai.com/v1
EMBEDDING_DIMENSION=3072
Optional
# Server ports (defaults: 8001/3782)
BACKEND_PORT=8001
FRONTEND_PORT=3782
# Remote access
NEXT_PUBLIC_API_BASE=http://your-server-ip:8001
# Web search
SEARCH_PROVIDER=perplexity # or: baidu
PERPLEXITY_API_KEY=your_key
# TTS
TTS_MODEL=
TTS_URL=
TTS_API_KEY=
Agent Parameters
Edit config/agents.yaml:
solve:
temperature: 0.3
max_tokens: 8192
research:
temperature: 0.5
max_tokens: 12000
question:
temperature: 0.7
max_tokens: 4096
Data Locations
data/
├── knowledge_bases/ # Your uploaded documents
└── user/
├── solve/ # Problem solving outputs
├── question/ # Generated questions
├── research/ # Research reports
├── guide/ # Learning sessions
└── logs/ # System logs
📖 Full reference: config/README.md