mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-01 23:30:02 +08:00
92 lines
3.0 KiB
Plaintext
92 lines
3.0 KiB
Plaintext
# ==============================================================================
|
|
# DeepTutor Environment Configuration
|
|
# ==============================================================================
|
|
# Copy this file to `.env` and fill in the values.
|
|
# Required fields are marked with [Required], optional fields with [Optional].
|
|
|
|
# ==============================================================================
|
|
# Server Port
|
|
# ==============================================================================
|
|
|
|
# [Optional] Backend API server port
|
|
BACKEND_PORT=8001
|
|
|
|
# ==============================================================================
|
|
# LLM Configuration (Large Language Model)
|
|
# ==============================================================================
|
|
# Primary LLM for all AI operations (solve, question generation, etc.)
|
|
|
|
# [Required] Provider binding: openai, azure_openai, anthropic,
|
|
# deepseek, openrouter, groq, together, mistral
|
|
# ollama, lm_studio, vllm, llama_cpp
|
|
LLM_BINDING=openai
|
|
|
|
# [Required] Model name (e.g., gpt-4o, deepseek-chat, claude-3-5-sonnet)
|
|
LLM_MODEL=gpt-4o
|
|
|
|
# [Required] API key for the LLM provider
|
|
LLM_API_KEY=sk-xxx
|
|
|
|
# [Required] API endpoint URL
|
|
LLM_HOST=https://api.openai.com/v1
|
|
|
|
# [Optional] API version (required for Azure OpenAI)
|
|
LLM_API_VERSION=
|
|
|
|
# ==============================================================================
|
|
# Embedding Configuration
|
|
# ==============================================================================
|
|
# Embedding model for RAG (Retrieval-Augmented Generation)
|
|
|
|
# [Required] Provider: openai, azure_openai, jina,
|
|
# cohere, huggingface, google, ollama, lm_studio
|
|
EMBEDDING_BINDING=openai
|
|
|
|
# [Required] Model name
|
|
EMBEDDING_MODEL=text-embedding-3-small
|
|
|
|
# [Required] API key
|
|
EMBEDDING_API_KEY=sk-xxx
|
|
|
|
# [Required] API endpoint URL
|
|
EMBEDDING_HOST=https://api.openai.com/v1
|
|
|
|
# [Required] Vector dimensions (must match model output)
|
|
EMBEDDING_DIMENSION=3072
|
|
|
|
# [Optional] API version (for Azure OpenAI)
|
|
EMBEDDING_API_VERSION=
|
|
|
|
# ==============================================================================
|
|
# Search Configuration (Web Search)
|
|
# ==============================================================================
|
|
# Optional: Enable web search capabilities
|
|
|
|
# [Optional] Provider: perplexity, tavily, serper, jina, exa
|
|
SEARCH_PROVIDER=perplexity
|
|
|
|
# [Optional] API key for your chosen search provider
|
|
SEARCH_API_KEY=pplx-xxx
|
|
|
|
# ==============================================================================
|
|
# Debug & Development
|
|
# ==============================================================================
|
|
|
|
# [Optional] Disable SSL verification (not recommended for production)
|
|
DISABLE_SSL_VERIFY=false
|
|
|
|
# ==============================
|
|
# HuggingFace / MinerU (Optional)
|
|
# ==============================
|
|
|
|
# Use a HuggingFace mirror endpoint (optional)
|
|
# HF_ENDPOINT=https://your-hf-mirror.example.com
|
|
|
|
# HuggingFace cache directory
|
|
# HF_HOME=/app/data/hf
|
|
|
|
# Force offline mode (requires models already downloaded into the cache)
|
|
# HF_HUB_OFFLINE=1
|
|
|
|
MINERU_API_TOKEN=your-token
|