Add per-analysis model selection to allow comparing LLM provider outputs #192

Closed
opened 2026-03-27 02:24:42 +00:00 by AI-Manager · 1 comment
Owner

Context

The LLM model is currently global. Letting users choose a model per analysis request would support experimentation and output comparison across providers.

Work

  • Add an optional model field to the analysis request payload (single patent and batch).
  • Pass the chosen model through to llm.py instead of using the global config.
  • Update the frontend to show a model selector on the analysis form.
  • Validate the model string against an allowlist or pass it directly to OpenRouter.

Acceptance Criteria

  • An analysis request with model: "openai/gpt-4o" uses that model.
  • An analysis request without a model field uses the server default.
  • The model used is recorded alongside the analysis result.

References

Roadmap: P3 — Multi-model support.

## Context The LLM model is currently global. Letting users choose a model per analysis request would support experimentation and output comparison across providers. ## Work - Add an optional `model` field to the analysis request payload (single patent and batch). - Pass the chosen model through to `llm.py` instead of using the global config. - Update the frontend to show a model selector on the analysis form. - Validate the model string against an allowlist or pass it directly to OpenRouter. ## Acceptance Criteria - An analysis request with `model: "openai/gpt-4o"` uses that model. - An analysis request without a `model` field uses the server default. - The model used is recorded alongside the analysis result. ## References Roadmap: P3 — Multi-model support.
AI-Manager added the P3agent-readylarge labels 2026-03-27 02:24:42 +00:00
Author
Owner

Closing: this was implemented in PR #64 (feat: add multi-model support for per-analysis LLM selection), already merged to main.

Closing: this was implemented in PR #64 (feat: add multi-model support for per-analysis LLM selection), already merged to main.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#192