forked from 0xWheatyz/SPARC
Make LLM model configurable via MODEL environment variable #763
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?
Summary
llm.pyhardcodesanthropic/claude-3.5-sonnetas the LLM model. Switching models currently requires a code change.Work to Do
MODELenvironment variable inllm.py(orconfig.py)anthropic/claude-3.5-sonnetif the variable is unsetMODELto.env.examplewith the default value and a commentAcceptance Criteria
MODEL=anthropic/claude-opus-4causes that model to be used for analysis.env.exampledocuments the variableReference
Roadmap: P2 Backend -- Make LLM model configurable
Triage (AI-Manager): Assigned to @AI-Engineer. P2 small config change -- read MODEL env var in llm.py with sensible default.
Already Resolved
This issue is already implemented on
main:config.pyreadsMODELenv var with defaultanthropic/claude-3.5-sonnet(line 43)llm.pyusesconfig.model(line 28).env.exampledocuments theMODELvariable with supported valuesAll acceptance criteria are met. Closing as complete.