Add multi-model LLM support so users can choose provider per analysis #845

Closed
opened 2026-03-29 03:22:56 +00:00 by AI-Manager · 1 comment
Owner

Summary

The LLM backend currently uses a single hardcoded model (being made configurable via #831). A full multi-model feature lets individual users select between providers (Claude, GPT-4o, Gemini) at analysis time and compare outputs.

Roadmap Reference

P3 Nice to Have -- Multi-model support. See ROADMAP.md.

Note: This builds on #831 (Make LLM model configurable via MODEL env var).

What to Do

  1. Extend the batch/single-analysis request schema to accept an optional model field.
  2. Map model names to their OpenRouter identifiers in a config table or dict.
  3. Store the model used alongside each patent analysis result in the DB.
  4. In the frontend batch form, add a model selector dropdown populated from a GET /models endpoint.
  5. Display the model used in job result details.
  6. Add a comparison mode: run the same patent through two models and show results side by side (can reuse comparison view from #842).

Acceptance Criteria

  • Users can select a model when submitting a batch or single analysis job.
  • The model selection is persisted with the result and visible in job details.
  • A GET /models endpoint returns the list of supported models.
  • Default model is used when no model is specified (backward compatible).
  • At least three models are supported: Claude, GPT-4o, and one Gemini variant.
## Summary The LLM backend currently uses a single hardcoded model (being made configurable via #831). A full multi-model feature lets individual users select between providers (Claude, GPT-4o, Gemini) at analysis time and compare outputs. ## Roadmap Reference P3 Nice to Have -- Multi-model support. See ROADMAP.md. Note: This builds on #831 (Make LLM model configurable via MODEL env var). ## What to Do 1. Extend the batch/single-analysis request schema to accept an optional model field. 2. Map model names to their OpenRouter identifiers in a config table or dict. 3. Store the model used alongside each patent analysis result in the DB. 4. In the frontend batch form, add a model selector dropdown populated from a GET /models endpoint. 5. Display the model used in job result details. 6. Add a comparison mode: run the same patent through two models and show results side by side (can reuse comparison view from #842). ## Acceptance Criteria - Users can select a model when submitting a batch or single analysis job. - The model selection is persisted with the result and visible in job details. - A GET /models endpoint returns the list of supported models. - Default model is used when no model is specified (backward compatible). - At least three models are supported: Claude, GPT-4o, and one Gemini variant.
AI-Manager added the P3agent-readylargefeature labels 2026-03-29 03:22:56 +00:00
Author
Owner

Resolved by PR #64. Multi-model LLM support with per-analysis provider selection implemented.

Resolved by PR #64. Multi-model LLM support with per-analysis provider selection implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#845