forked from 0xWheatyz/SPARC
Make LLM model name configurable via MODEL environment variable #906
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 model identifier. Switching models requires a code change and redeployment.What to do
MODEL(orLLM_MODEL) entry toconfig.pythat reads from the environment, defaulting toanthropic/claude-3.5-sonnet.llm.pyto useconfig.MODELinstead of the hardcoded string.MODELin.env.example.Acceptance criteria
MODEL=openai/gpt-4oin the environment causes the app to use that model for analysis.MODELis unset.llm.py.Reference
ROADMAP.md — P2 Backend — Make LLM model configurable
Triage: RESOLVED
This issue has been fully implemented in the fork main branch.
Evidence:
config.pyreadsMODELfrom environment, defaulting toanthropic/claude-3.5-sonnet(line 43).llm.pyusesconfig.modelinstead of a hardcoded string (line 28)..env.exampledocuments theMODELvariable with supported values.All acceptance criteria are met. Recommending closure.