[feature] Add Ollama model discovery and in-chat model selection

Author: KeyMaster302Created Sep 23, 2026Updated Sep 23, 2026
Labelsenhancement

What problem does this solve?

When using MagenticLite with a local Ollama server, the user currently has to manually enter the exact model name during setup. This can create an avoidable failure even when the model is already installed and the Ollama connection is working.

For example, I had phi4-mini:latest installed and available in Ollama. I entered phi4-mini when configuring MagenticLite, and verification failed because the exact model identifier was different. The error then showed that phi4-mini:latest was available.

This creates unnecessary confusion and troubleshooting for users because the system already knows which models are available, but the user has to manually type the model identifier correctly.

There is also a related usability problem after setup. Once a model has been configured and the user is working in a conversation, changing to another available model requires leaving the conversation and going back into Settings → Models.

The use case is to make it easy for a user to see which models are available from their configured Ollama server, select the model they want to use, and switch between available models while working without having to manually type model IDs or repeatedly return to the setup screen.

Proposed solution

For Ollama connections, I would suggest having MagenticLite automatically query the configured Ollama endpoint for the models that are currently available.

During model setup, instead of requiring the user to manually type the model ID, the Model Name field could provide a dropdown containing the exact model IDs returned by Ollama. The list could include a refresh option so newly installed models can be detected without reconfiguring the endpoint.

For example, if Ollama reports:

phi4-mini:latest qwen2.5-coder:3b huihui_ai/gemma-4-abliterated:e2b

the user could simply select the desired model instead of manually typing its name.

I would also suggest making the currently selected model visible from the main chat interface, similar to how many other AI chat interfaces display the active model. Clicking the model name could open a dropdown showing the other available models and allow the user to switch models without leaving the conversation or returning to Settings → Models.

The selected model should then be used for subsequent requests, with the existing configuration and verification behavior still applying.

This could be primarily a UI and behavior improvement, with the Ollama model-list API being used to populate the available model choices automatically.

Alternatives considered

One alternative is to keep the current manual Model Name field and simply provide better instructions telling the user to enter the exact model ID returned by their model provider. While this would explain the requirement, it still leaves room for typing errors and requires the user to know where to find the exact identifier.

Another possibility would be to keep model selection only under Settings → Models and require users to return there whenever they want to change models. This would avoid manual entry after setup, but it adds extra steps and interrupts the user's current conversation.

For Ollama specifically, another approach could be to require the user to run an Ollama command such as ollama list and copy the model name into MagenticLite. This would provide the correct identifier, but it requires the user to know how to use the command line and manually transfer the information.

Automatically discovering the available models from the configured Ollama endpoint and presenting the exact model IDs for selection would avoid these extra steps while reducing the possibility of configuration errors. A model selector in the chat interface could then reuse that available-model information when the user wants to switch models.

Additional context

This feature request comes from a real MagenticLite setup using a local Ollama server.

During testing, Ollama reported these available models:

phi4-mini:latest qwen2.5-coder:3b huihui_ai/gemma-4-abliterated:e2b

When configuring the Orchestrator, entering phi4-mini caused verification to fail with:

Model 'phi4-mini' not found. Available: phi4-mini:latest, qwen2.5-coder:3b, huihui_ai/gemma-4-abliterated:e2b

The model was installed and the Ollama endpoint was reachable. The failure was caused by the user having to manually enter the exact model identifier.

This also relates to the broader model/configuration experience in MagenticLite. Relevant existing issues include #486, which discusses Ollama usage, and #227, which discusses improvements to the Settings experience.

I believe automatic model discovery and selection could improve both the initial setup experience and the ability to change models while working in a conversation.