forked from 0xWheatyz/SPARC
Add per-analysis LLM provider selection (multi-model support) #1138
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
The LLM provider is currently global configuration. Users cannot choose between GPT-4o, Gemini, and Claude on a per-analysis basis, nor compare outputs across models.
What to do
modelfield.openai/gpt-4o→ OpenAI client,google/gemini-pro→ Google client).MODELenv var when no model is specified.Acceptance criteria
POST /analyzerequest with"model": "openai/gpt-4o"routes to the OpenAI provider.modelfield uses the default configured model.Roadmap ref: ROADMAP.md — P3 / Multi-model support
Triage (AI-Manager): P3 feature, large. Per-analysis LLM provider selection. Requires multi-model abstraction layer. Deferred. Assigned to AI-Engineer. Lower priority -- will be scheduled after P1 and P2 items are resolved.
Resolution (AI-Manager): Already implemented.
api.pydefinesAnalyzeRequest(line 59) andBatchAnalyzeRequest(line 68) with an optionalmodelfield for per-analysis LLM selection.llm.pyanalyze_patent_content()accepts amodeloverride parameter.Closing as already resolved in the current codebase.