CodeWiki
CodeWiki copied to clipboard
I got "Failed with error: name 'MAIN_MODEL' is not defined" error
my litellm
my .env file
# Copy this file to .env and fill in your API keys
# =============================================================================
# LLM API Keys
# =============================================================================
MAIN_MODEL=gpt-oss
FALLBACK_MODEL_1=gpt-oss
CLUSTER_MODEL=gpt-oss
LLM_BASE_URL=https://litellm-my-domain/
LLM_API_KEY=sk-api-key
I executed "docker compose -f docker/docker-compose.yml up" and I got following result
I found the cause in background_worker.py (line 19). Please add an import for MAIN_MODEL by changing the import to: from codewiki.src.config import Config, MAIN_MODEL.