mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 09:10:19 +08:00
119 lines
4.3 KiB
Plaintext
119 lines
4.3 KiB
Plaintext
# ============================================================================
|
|
# Deep-Tutor Environment Configuration
|
|
# Copy this file to .env and fill in your API keys and settings.
|
|
# All API keys should be kept confidential and never committed to version control.
|
|
# You can adjust the max_token parameters in DeepTutor\config\agents.yaml.
|
|
# ============================================================================
|
|
|
|
# ============================================================================
|
|
# Server Configuration
|
|
# ============================================================================
|
|
# Configure the server ports and API URL for remote access.
|
|
|
|
# Backend API port (default: 8001)
|
|
# BACKEND_PORT=8001
|
|
|
|
# Frontend web port (default: 3782)
|
|
# FRONTEND_PORT=3782
|
|
|
|
# Frontend API Base URL (for remote/LAN access)
|
|
# Set this when accessing DeepTutor from another device on your network.
|
|
# Example: If your server IP is 192.168.1.100, set:
|
|
# NEXT_PUBLIC_API_BASE=http://192.168.1.100:8001
|
|
# If not set, defaults to http://localhost:8001 (only works on the local machine)
|
|
|
|
# NEXT_PUBLIC_API_BASE=http://your-server-ip:8001 (optional)
|
|
|
|
# ============================================================================
|
|
# LLM (Large Language Model) Configuration
|
|
# ============================================================================
|
|
# Configure the main AI model used for reasoning, generation, and conversation.
|
|
# Supports OpenAI-compatible APIs (OpenAI, Azure OpenAI, DeepSeek, Qwen, etc.)
|
|
|
|
# LLM service provider type
|
|
# Options: openai, azure_openai, ollama, lollms
|
|
LLM_BINDING=openai
|
|
|
|
# Model name for the LLM
|
|
LLM_MODEL=
|
|
|
|
# LLM API endpoint URL
|
|
LLM_HOST=
|
|
|
|
# LLM API authentication key
|
|
LLM_API_KEY=
|
|
|
|
# Disable SSL certificate verification (set 'true' for self-signed certificates)
|
|
DISABLE_SSL_VERIFY=false
|
|
|
|
# ============================================================================
|
|
# Embedding Model Configuration
|
|
# ============================================================================
|
|
# Configure the text embedding model used for semantic search and RAG.
|
|
# Required for knowledge base functionality.
|
|
|
|
# Embedding service provider type
|
|
# Options: openai, azure_openai, ollama, lollms
|
|
EMBEDDING_BINDING=openai
|
|
|
|
# Embedding model name
|
|
# Examples: text-embedding-3-large, text-embedding-3-small, text-embedding-ada-002
|
|
EMBEDDING_MODEL=text-embedding-3-large
|
|
|
|
# Embedding vector dimension
|
|
EMBEDDING_DIMENSION=3072
|
|
|
|
# Embedding API endpoint URL
|
|
EMBEDDING_HOST=
|
|
|
|
# Embedding API authentication key
|
|
EMBEDDING_API_KEY=
|
|
|
|
# ============================================================================
|
|
# TTS (Text-to-Speech) Configuration (Optional)
|
|
# ============================================================================
|
|
# Configure voice synthesis for the Co-Writer(Interactive IdeaGen) narration feature.
|
|
# Also remember to choose a voice in DeepTutor\config\main.yaml.
|
|
|
|
# TTS model name
|
|
TTS_MODEL=
|
|
|
|
# TTS API endpoint URL
|
|
TTS_URL=
|
|
|
|
# TTS API authentication key
|
|
TTS_API_KEY=
|
|
|
|
# ============================================================================
|
|
# Web Search Configuration
|
|
# ============================================================================
|
|
# Configure external search APIs for research features.
|
|
|
|
# Search provider to use for web search
|
|
# Options: perplexity, baidu
|
|
# Default: perplexity
|
|
SEARCH_PROVIDER=perplexity
|
|
|
|
# ----------------------------------------------------------------------------
|
|
# Perplexity AI Search Configuration
|
|
# ----------------------------------------------------------------------------
|
|
# Perplexity API key for web search functionality
|
|
# Get your API key at: https://www.perplexity.ai/settings/api
|
|
PERPLEXITY_API_KEY=
|
|
|
|
# ----------------------------------------------------------------------------
|
|
# Baidu AI Search Configuration (鐧惧害AI鎼滅储)
|
|
# ----------------------------------------------------------------------------
|
|
# Baidu API Key for intelligent search and generation
|
|
# Get your API key at: https://console.bce.baidu.com/ai_apaas/resource
|
|
# Format: bce-v3/ALTAK-xxx/xxx or the full API key
|
|
BAIDU_API_KEY=
|
|
|
|
# ============================================================================
|
|
# Logging Configuration
|
|
# ============================================================================
|
|
|
|
# Log level for RAG tool module
|
|
# Options: DEBUG, INFO, WARNING, ERROR
|
|
RAG_TOOL_MODULE_LOG_LEVEL=INFO
|