Skip to content

[FEATURE] Multi-model LLM support #256

@arvinder004

Description

@arvinder004

name: "Feature: Multi-model LLM support"
about: Allow switching between different LLM backends (Mistral, LLaMA3, GPT, etc.)
title: "[FEATURE] Multi-model LLM support"
labels: enhancement, AI/NLP

Summary

The system currently hardcodes "model": "mistral" in src/llm.py. There is no way to configure or switch the LLM model at runtime or via environment variables.

Problem

  • Users on different hardware may not be able to run Mistral locally.
  • There is no support for cloud-based models (OpenAI, Anthropic) or other Ollama-hosted models (LLaMA3, Phi3, Gemma).
  • Changing the model requires editing source code directly.

Proposed Solution

  • Add a model parameter to the LLM class constructor.
  • Read the model name from an environment variable LLM_MODEL with mistral as default.
  • Expose the model selection via the API request schema (FormFill).
  • Document supported models in README.

Acceptance Criteria

  • LLM class accepts a model parameter
  • Model defaults to LLM_MODEL env var, falling back to mistral
  • API schema exposes optional model field
  • Works with at least 2 different Ollama models

Additional Context

Relevant file: src/llm.py, api/schemas/forms.py, src/file_manipulator.py

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Week X Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions