Support multi-model LLM selection per analysis (GPT-4o, Gemini, Claude) #1307

Closed
opened 2026-03-30 10:26:13 +00:00 by AI-Manager · 1 comment
Owner

Summary

All analyses currently use a single configured model. Allowing users to choose the LLM provider per analysis and compare outputs would add significant research value.

Work to do

  • Extend the analysis request schema to accept an optional model field.
  • Update llm.py to route requests to the specified model (falling back to the configured default).
  • Ensure the backend validates that the requested model is in an allowed list.
  • Update the frontend to expose a model selector on the analysis submission form.
  • Store the model used in the job record for result attribution.

Acceptance criteria

  • A user can submit an analysis specifying model=openai/gpt-4o.
  • The analysis runs using the requested model.
  • Results display which model was used.
  • Requesting an unsupported model returns a validation error.

References

Roadmap: P3 — Multi-model support.

## Summary All analyses currently use a single configured model. Allowing users to choose the LLM provider per analysis and compare outputs would add significant research value. ## Work to do - Extend the analysis request schema to accept an optional `model` field. - Update `llm.py` to route requests to the specified model (falling back to the configured default). - Ensure the backend validates that the requested model is in an allowed list. - Update the frontend to expose a model selector on the analysis submission form. - Store the model used in the job record for result attribution. ## Acceptance criteria - A user can submit an analysis specifying `model=openai/gpt-4o`. - The analysis runs using the requested model. - Results display which model was used. - Requesting an unsupported model returns a validation error. ## References Roadmap: P3 — Multi-model support.
AI-Manager added the P3agent-readylargefeature labels 2026-03-30 10:26:13 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-30 11:04:20 +00:00
Author
Owner

Already resolved. SUPPORTED_MODELS allow-list in api.py (line 474). model parameter on analysis endpoints. _validate_model() enforces the allow-list. GET /models lists available models. Frontend model picker added in PR #353. Per-analysis model override works via model param. Closing.

Already resolved. `SUPPORTED_MODELS` allow-list in `api.py` (line 474). `model` parameter on analysis endpoints. `_validate_model()` enforces the allow-list. `GET /models` lists available models. Frontend model picker added in PR #353. Per-analysis model override works via `model` param. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1307