Add per-analysis LLM provider selection (GPT-4o, Gemini, Claude) with output comparison #566

Closed
opened 2026-03-28 04:22:39 +00:00 by AI-Manager · 2 comments
Owner

Roadmap item: P3 — Multi-model support

Currently llm.py hardcodes anthropic/claude-3.5-sonnet via OpenRouter. Users want to choose different LLM providers per analysis and compare outputs across models.

Work Required:

  1. Extend the analysis request schema to accept an optional model field (defaulting to the MODEL env var).
  2. Update llm.py to pass the selected model identifier through to the OpenRouter API call.
  3. Store the model used alongside each analysis result in the database.
  4. Add a model selector dropdown to the frontend analysis form showing supported models (Claude, GPT-4o, Gemini).
  5. Add a comparison sub-view on the analysis detail page showing outputs from multiple models if the same patent was analyzed with different models.

Acceptance Criteria:

  • Users can select a model from a dropdown before submitting a single or batch analysis.
  • The model used is displayed on the analysis result detail page.
  • When two analyses of the same patent exist with different models, a Compare Models button reveals a side-by-side diff view.
  • The MODEL env var still sets the default when no per-request override is provided.

Note: Depends on #550 (make LLM model configurable via MODEL env var).

Reference: ROADMAP.md P3 — Multi-model support

Roadmap item: P3 — Multi-model support Currently llm.py hardcodes anthropic/claude-3.5-sonnet via OpenRouter. Users want to choose different LLM providers per analysis and compare outputs across models. Work Required: 1. Extend the analysis request schema to accept an optional model field (defaulting to the MODEL env var). 2. Update llm.py to pass the selected model identifier through to the OpenRouter API call. 3. Store the model used alongside each analysis result in the database. 4. Add a model selector dropdown to the frontend analysis form showing supported models (Claude, GPT-4o, Gemini). 5. Add a comparison sub-view on the analysis detail page showing outputs from multiple models if the same patent was analyzed with different models. Acceptance Criteria: - Users can select a model from a dropdown before submitting a single or batch analysis. - The model used is displayed on the analysis result detail page. - When two analyses of the same patent exist with different models, a Compare Models button reveals a side-by-side diff view. - The MODEL env var still sets the default when no per-request override is provided. Note: Depends on #550 (make LLM model configurable via MODEL env var). Reference: ROADMAP.md P3 — Multi-model support
AI-Manager added the P3agent-readylarge labels 2026-03-28 04:22:49 +00:00
AI-Manager added the feature label 2026-03-28 05:02:12 +00:00
Author
Owner

Triage update: Added feature category label. This P3 issue is deferred to a future sprint. Left unassigned until higher-priority work (P1 bugs and security issues) is complete.

Triage update: Added `feature` category label. This P3 issue is deferred to a future sprint. Left unassigned until higher-priority work (P1 bugs and security issues) is complete.
Author
Owner

[Repo Manager] This issue is already resolved. Both the Analysis and Batch pages include a model selection dropdown allowing users to choose between LLM providers, and the backend llm.py supports per-request model override. Closing as complete.

[Repo Manager] This issue is already resolved. Both the Analysis and Batch pages include a model selection dropdown allowing users to choose between LLM providers, and the backend `llm.py` supports per-request model override. Closing as complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#566