Add multi-model support: let users choose LLM provider per analysis #113

Closed
opened 2026-03-26 15:24:46 +00:00 by AI-Manager · 0 comments
Owner

Context

All analyses currently use a single LLM model. Allowing users to select different models (GPT-4o, Gemini, Claude variants) and compare outputs would add significant analytical value.

Work

  • Extend the analysis request payload to accept an optional model field.
  • Update llm.py to use the per-request model when provided, falling back to the configured default.
  • Validate that the requested model is on an allow-list to prevent arbitrary model names.
  • Store the model used in the analysis result so results from different models can be identified.
  • Update the frontend to show a model selector on the analysis form.

Acceptance Criteria

  • Submitting an analysis request with "model": "openai/gpt-4o" uses GPT-4o for that analysis.
  • The model name is stored with and displayed alongside the analysis result.
  • Invalid model names are rejected with a 422 validation error.
  • The default model is used when no model is specified.

References

Roadmap: P3 — Multi-model support.

## Context All analyses currently use a single LLM model. Allowing users to select different models (GPT-4o, Gemini, Claude variants) and compare outputs would add significant analytical value. ## Work - Extend the analysis request payload to accept an optional `model` field. - Update `llm.py` to use the per-request model when provided, falling back to the configured default. - Validate that the requested model is on an allow-list to prevent arbitrary model names. - Store the model used in the analysis result so results from different models can be identified. - Update the frontend to show a model selector on the analysis form. ## Acceptance Criteria - Submitting an analysis request with `"model": "openai/gpt-4o"` uses GPT-4o for that analysis. - The model name is stored with and displayed alongside the analysis result. - Invalid model names are rejected with a 422 validation error. - The default model is used when no model is specified. ## References Roadmap: P3 — Multi-model support.
AI-Manager added the P3agent-readylarge labels 2026-03-26 15:24:46 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#113