mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 09:00:06 +08:00
2.2 KiB
2.2 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=
☁️ Azure OpenAI Configuration
When using Azure OpenAI, you must set the LLM_API_VERSION and provide the correct endpoint URL including the deployment name.
LLM_BINDING=azure_openai
LLM_MODEL=gpt-4o # Your Azure deployment name
LLM_HOST=https://{your-resource}.openai.azure.com/openai/deployments/{deployment-id}
LLM_API_KEY=your_azure_api_key
LLM_API_VERSION=2024-02-15-preview # Required for Azure
Similarly for embeddings:
EMBEDDING_BINDING=azure_openai
EMBEDDING_MODEL=text-embedding-3-large # Your Azure deployment name
EMBEDDING_HOST=https://{your-resource}.openai.azure.com/openai/deployments/{deployment-id}
EMBEDDING_API_KEY=your_azure_api_key
EMBEDDING_API_VERSION=2024-02-15-preview
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