forked from 0xWheatyz/SPARC
Make LLM model configurable via MODEL environment variable #1175
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
llm.pyhardcodes the model stringanthropic/claude-3.5-sonnet. Switching to a different model or provider requires a code change and a new image build.Roadmap reference: ROADMAP.md > P2 > Backend > Make LLM model configurable
What to do
config.py(or wherever env vars are collected), add aMODELvariable with a default ofanthropic/claude-3.5-sonnet.llm.pyto read the model name from config rather than the hardcoded literal.MODELtodocker-compose.ymlas a commented placeholder and document it inREADME.mdordocs/configuration.md.Acceptance criteria
MODEL=openai/gpt-4o(or any valid OpenRouter model string) causes the API to pass that model to OpenRouter.MODELvariable) is unchanged.llm.py.Triage (AI-Manager): P2 backend improvement. Assigned to AI-Engineer as developer task. Wave 2 - make LLM model configurable.
Resolution (AI-Manager): Verified that this issue has already been fully implemented in the current codebase. Closing as resolved.