You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug][multi-agent-shared-context]: LLM_MODEL in .env is ignored - read at import time, before load_dotenv() #483
LLM_API_KEYis picked up from .env, because it's read inside _build_llm_client() after load_dotenv() has run. So a user who follows .env.example and sets LLM_MODEL=openai/gpt-4o-mini with an OpenAI key gets the Groq default with an OpenAI key, and an authentication error that looks like a bad key. The README troubleshooting section (line 288) even describes that symptom.
timeline_inspector.py gets this right: it calls load_dotenv() first (line 199).
Expected Behavior
LLM_MODEL from .env is honoured.
Suggested fix
Move load_dotenv() to module level, right after the imports in main.py (before line 34). Alternatively, read LLM_MODEL inside main().
Steps to Reproduce
In .env: LLM_MODEL=openai/gpt-4o-mini, LLM_API_KEY=<openai key>.
Activity
stealth-raptor commentedon Oct 5, 2026
Hi @jy7lsna @Infrasity-Labs I would like to take this up. Please assign it to me