maxkb/.env.example
2025-08-24 00:56:02 +08:00

129 lines
3.3 KiB
Plaintext

# MinerU Test Configuration
# Copy this file to .env and configure with your settings
# ============================================
# MinerU API Configuration
# ============================================
# API Type: "self_hosted" or "cloud"
MINERU_API_TYPE=self_hosted
# API URL
# For self-hosted: http://mineru:8000 or http://localhost:30001
# For cloud: https://mineru.net
MINERU_API_URL=http://mineru:8000
# API Key (required for cloud, optional for self-hosted)
# MINERU_API_KEY=your_api_key_here
# ============================================
# Test Configuration
# ============================================
# Test file path (optional, for testing with specific files)
# MINERU_TEST_FILE=/path/to/your/test.pdf
# Learn type (AI model type, default: 9)
MINERU_LEARN_TYPE=9
# Maximum concurrent API calls
MAX_CONCURRENT_API_CALLS=2
# Verbose output (true/false)
MINERU_VERBOSE=true
# ============================================
# LLM Configuration (for advanced image processing)
# ============================================
# OpenAI API Key
# ADVANCED_PARSER_KEY_OPENAI=sk-your_openai_key_here
# Claude API Key
# ADVANCED_PARSER_KEY_CLAUDE=sk-your_claude_key_here
# Gemini API Key
# ADVANCED_PARSER_KEY_GEMINI=your_gemini_key_here
# ============================================
# MaxKB Configuration
# ============================================
# MaxKB LLM Model ID (use UUID from MaxKB model list)
# Example: 0198cbd9-c1a6-7b13-b16d-d85ad77ac03d (gpt-4o)
# MAXKB_LLM_MODEL_ID=0198cbd9-c1a6-7b13-b16d-d85ad77ac03d
# MaxKB Vision Model ID (use UUID from MaxKB model list)
# Example: 0198cbd9-c1a6-7b13-b16d-d85ad77ac03d (gpt-4o supports vision)
# MAXKB_VISION_MODEL_ID=0198cbd9-c1a6-7b13-b16d-d85ad77ac03d
# MaxKB API Key
# MAXKB_API_KEY=your_maxkb_api_key
# MaxKB API URL
# MAXKB_API_URL=https://api.maxkb.com
# MaxKB Default Model (deprecated, use MAXKB_LLM_MODEL_ID instead)
# MAXKB_DEFAULT_MODEL=gpt-4o
# ============================================
# Django/Database Configuration (for MaxKB)
# ============================================
# Database settings (if needed for testing)
# DATABASE_URL=postgresql://user:password@localhost/dbname
# Django settings module
# DJANGO_SETTINGS_MODULE=settings
# ============================================
# Logging Configuration
# ============================================
# Log level: DEBUG, INFO, WARNING, ERROR
LOG_LEVEL=INFO
# Log file path (optional)
# LOG_FILE=/path/to/mineru_test.log
# ============================================
# Cache Configuration
# ============================================
# Enable cache (true/false)
ENABLE_CACHE=true
# Cache directory
# CACHE_DIR=/tmp/mineru_cache
# Cache TTL in seconds (default: 3600)
CACHE_TTL=3600
# ============================================
# Performance Configuration
# ============================================
# Request timeout in seconds
REQUEST_TIMEOUT=300
# Maximum file size in MB
MAX_FILE_SIZE=100
# Number of worker threads
WORKER_THREADS=4
# ============================================
# Development/Testing Flags
# ============================================
# Skip API connectivity tests
# SKIP_API_TESTS=false
# Skip file processing tests
# SKIP_FILE_TESTS=false
# Use mock services for testing
# USE_MOCK_SERVICES=false
# Test mode (enables additional debug output)
TEST_MODE=true