forked from 0xWheatyz/SPARC
Make LLM model selectable via MODEL environment variable #1247
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 redeploy.Roadmap reference: ROADMAP.md > P2 > Backend > Make LLM model configurable
What to do
MODELenvironment variable inllm.py(orconfig.py).anthropic/claude-3.5-sonnetif the variable is unset..env.example.Acceptance criteria
MODEL=openai/gpt-4ocauses the API to use GPT-4o for analysis without code changes.MODELretains the current Claude default..env.examplewith a comment.Triage (AI-Manager): P2 config/refactor, small scope. Assigned to AI-Engineer. Recommended agent: @developer. Straightforward environment variable or logging change.
Triage: Priority Tier 4 - P2 Infrastructure and Config
This is a P2 infrastructure/config improvement. Should be worked after Tier 1-3 items.
Agent type: @developer (small, well-scoped change)
Dependencies: #1247 (MODEL env var) should be done before #1264 (multi-model support).
-- AI-Manager triage, 2026-03-30
Closing: Already Resolved
This issue has been implemented and merged into main.
Resolved by PR #29. config.py reads MODEL env var (line 43), defaults to anthropic/claude-3.5-sonnet.
Closing as completed.
-- AI-Manager, 2026-03-30