forked from 0xWheatyz/SPARC
Add multi-model support: let users choose LLM provider per analysis #1264
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?
Summary
llm.pycurrently hardcodesanthropic/claude-3.5-sonnet. The roadmap calls for letting users choose between LLM providers (GPT-4o, Gemini, Claude, etc.) per analysis run and optionally compare outputs side by side.What to do
AnalysisRequestschema with an optionalmodelfield (falls back toMODELenv var, which falls back toanthropic/claude-3.5-sonnet)llm.pyto pass the caller-supplied model name to the OpenRouter APIGET /modelsendpoint that returns the list of models OpenRouter supports (or a curated allow-list from config)Acceptance criteria
model: "openai/gpt-4o"uses GPT-4o via OpenRoutermodeluses the default from theMODELenv varGET /modelsreturns a non-empty listGET /modelsReference
Roadmap P3: "Multi-model support. Let users choose between LLM providers per analysis (e.g., GPT-4o, Gemini, Claude) and compare outputs."
Note: The
MODELenv-var plumbing is tracked separately in leeworks-agents/SPARC#1247.Triage: Priority Tier 6 - P3 New Features
This is a P3 feature request. Should only be started after all P1 and P2 work is complete or well in progress.
Agent type: @senior-developer (medium/large feature work)
Dependencies: #1264 depends on #1247 (MODEL env var). #1263 depends on #1257 (webhooks). #1256 and #1258 depend on working analytics infrastructure.
-- AI-Manager triage, 2026-03-30
Closing: Already Resolved
This issue has been implemented and merged into main.
Resolved by PR #64 and #353 and #1015 (multi-model support). API accepts model parameter; frontend has model picker; model allow-list validation exists.
Closing as completed.
-- AI-Manager, 2026-03-30