forked from 0xWheatyz/SPARC
Make LLM model configurable via MODEL environment variable #1577
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Roadmap item: P2 - Backend - Make LLM model configurable
llm.pyhardcodesanthropic/claude-3.5-sonnet. Switching models requires a code change and redeploy.What to do
MODEL(orLLM_MODEL) environment variable toconfig.pywithanthropic/claude-3.5-sonnetas the defaultllm.pyto read the model name from config.env.examplewith a comment listing supported model IDsAcceptance criteria
MODEL=openai/gpt-4ocausesllm.pyto use GPT-4o for analysisMODELis not set.env.exampledocuments the variableRef: ROADMAP.md P2 - Backend
[Manager Triage] Assigned to @AI-Engineer. Priority: P2 (code quality/refactoring). Developer-level change.
Triage: Already Resolved
The MODEL environment variable is read in
SPARC/config.py(line 43):model = os.getenv('MODEL', 'anthropic/claude-3.5-sonnet'). It is documented in.env.examplewith supported model examples.Closing as resolved.