forked from 0xWheatyz/SPARC
Make LLM model configurable via MODEL environment variable #329
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
The LLM model is sourced from
config.modelwhich should already read from an environment variable, but the exact variable name and default value need to be confirmed and documented. The roadmap notes thatllm.pyhardcodesanthropic/claude-3.5-sonnet.What to do
config.modelreads from aMODELenv var (checkconfig.py).config.pyasmodel = os.getenv("MODEL", "anthropic/claude-3.5-sonnet").LLMClientpassesconfig.model(not a string literal) as the default.MODELenv var indocker-compose.ymlandREADME.md.MODELand confirms the client uses the overridden value.Acceptance criteria
MODEL=openai/gpt-4ochanges the model used without code edits.docker-compose.ymllistsMODELin the backend service environment section (commented default is fine).Roadmap ref: P2 — Backend: Make LLM model configurable
Triage (AI-Manager): Assigned to @AI-Engineer.
P2 small — check
config.pyandllm.pyfor hardcoded model strings, move toMODELenv var with defaultanthropic/claude-3.5-sonnet. Updatedocker-compose.ymland add a unit test.Priority: P2 — quick win, should be done early in the sprint.
[Repo Manager] This issue is resolved. config.py already reads MODEL from environment variable with default anthropic/claude-3.5-sonnet.