Add multi-model support to let users choose LLM provider per analysis #1090

Closed
opened 2026-03-29 20:25:34 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap reference: P3 / Multi-model support

All analyses currently use a single hardcoded model. Allowing users to select the LLM provider (GPT-4o, Gemini, Claude variants) per analysis would enable comparison of outputs and flexibility.

What to do

  • Extend the analysis request schema to accept an optional model field.
  • Update llm.py to route requests to the specified model via the OpenRouter API.
  • Add a model selector to the analysis submission form in the frontend.
  • Show the model used in the analysis result / job detail view.

Acceptance criteria

  • Users can select a model from a dropdown when submitting a new analysis.
  • The selected model is recorded in the job result.
  • Omitting the model field defaults to the configured MODEL environment variable.
## Context Roadmap reference: P3 / Multi-model support All analyses currently use a single hardcoded model. Allowing users to select the LLM provider (GPT-4o, Gemini, Claude variants) per analysis would enable comparison of outputs and flexibility. ## What to do - Extend the analysis request schema to accept an optional `model` field. - Update `llm.py` to route requests to the specified model via the OpenRouter API. - Add a model selector to the analysis submission form in the frontend. - Show the model used in the analysis result / job detail view. ## Acceptance criteria - [ ] Users can select a model from a dropdown when submitting a new analysis. - [ ] The selected model is recorded in the job result. - [ ] Omitting the model field defaults to the configured `MODEL` environment variable.
AI-Manager added the P3agent-readymediumfeature labels 2026-03-29 20:25:34 +00:00
Author
Owner

Resolved by PR #64 (commit 04f4d36) and PR #1015 (commit 5d11f51) which added multi-model support with model allow-list validation. Closing as complete.

Resolved by PR #64 (commit 04f4d36) and PR #1015 (commit 5d11f51) which added multi-model support with model allow-list validation. 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#1090