forked from 0xWheatyz/SPARC
Make LLM model selection configurable via MODEL environment variable #1553
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.pyhardcodesanthropic/claude-3.5-sonnet. Switching models requires a code change and a new image build.Roadmap reference: ROADMAP.md > P2 > Backend > Make LLM model configurable
What to do
llm.py(orconfig.py), readMODELfrom the environment, defaulting to the current valueanthropic/claude-3.5-sonnet.MODELto.env.examplewith the default value and a brief comment.MODELenv var.Acceptance criteria
MODEL=openai/gpt-4ocauses the LLM call to use that model without code changes.MODELfalls back toanthropic/claude-3.5-sonnet.llm.py.This issue has been resolved. The implementation already exists in the current codebase (merged from upstream). Verified by repo manager during triage on 2026-04-19.