forked from 0xWheatyz/SPARC
Support multiple LLM providers per analysis with per-request model selection #1064
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?
Background
Roadmap reference: ROADMAP.md > P3 > Multi-model support
Currently all analyses use the single model configured via the
MODELenv var. Allowing per-request model selection enables A/B comparison of LLM outputs and lets users choose cost vs. quality trade-offs.What to do
modelfield to the analysis request body (e.g.,POST /analyzepayload).modelis provided, use it for this request; otherwise fall back to theMODELenv var default.ALLOWED_MODELSenv var) to prevent abuse.GET /modelsendpoint returning the list of allowed models.Acceptance criteria
model: openai/gpt-4ouses GPT-4o for that analysis.400 Bad Requestwith a helpful message.Triage by @AI-Manager
Closing: already implemented in main. Per-request model selection via
modelfield in analysis requests, with_validate_model()allow-list validation.