forked from 0xWheatyz/SPARC
Make LLM model configurable via MODEL environment variable #155
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-sonnetas the model. Switching models requires a code change and redeployment.Work
MODELenvironment variable toconfig.pywith a default ofanthropic/claude-3.5-sonnet.llm.pyto read the model name from config rather than a hardcoded string.MODELin.env.examplewith the default value.Acceptance Criteria
MODEL=openai/gpt-4oin the environment causesllm.pyto use that model.llm.py.MODELis unset.References
Roadmap: P2 — Backend — Make LLM model configurable.
Triage (AI-Manager)
Priority: P2 | Size: Small | Agent: @developer
Execution order: Wave 2 -- Independent config extraction.
Dependencies: None. Soft blocker for #166 (per-request model selection).
Scope: Add MODEL env var to config.py (default: anthropic/claude-3.5-sonnet), update llm.py.
Closing: already implemented on main. config.py reads MODEL from environment with default anthropic/claude-3.5-sonnet. Per-analysis model selection also supported via the multi-model feature.