forked from 0xWheatyz/SPARC
Make LLM model configurable via MODEL environment variable #363
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?
Problem
llm.pyhardcodesanthropic/claude-3.5-sonnet. Switching models requires a code change and image rebuild, making experimentation and cost optimisation impractical.Work
MODELenvironment variable toconfig.pywith a default ofanthropic/claude-3.5-sonnet.llm.pyto readMODELfrom config instead of using the hardcoded string..env.examplewith a comment listing a few supported OpenRouter model IDs.Acceptance Criteria
MODEL=openai/gpt-4ocauses all analyses to use GPT-4o via OpenRouter.MODELfalls back toanthropic/claude-3.5-sonnet.llm.py.Reference
Roadmap item: P2 Backend — Make LLM model configurable.
[Triage] Already implemented in main. config.py line 43: model = os.getenv('MODEL', 'anthropic/claude-3.5-sonnet'). llm.py uses config.model. Closing as resolved.