Skip to content

feat: Dynamically fetch installed Ollama models#2

Open
abhaymundhara wants to merge 2 commits into
LiamFuller07:mainfrom
abhaymundhara:feature/dynamic-ollama-models
Open

feat: Dynamically fetch installed Ollama models#2
abhaymundhara wants to merge 2 commits into
LiamFuller07:mainfrom
abhaymundhara:feature/dynamic-ollama-models

Conversation

@abhaymundhara

@abhaymundhara abhaymundhara commented Jan 19, 2026

Copy link
Copy Markdown

Description

This PR implements dynamic fetching of installed Ollama models instead of using a hardcoded list. When users select the Ollama provider, the app now fetches and displays only the models they have actually installed locally.

Changes Made

  • Added IPC handler in main process (fetch-ollama-models) to fetch from Ollama API
  • Updated SettingsDialog component to fetch models when Ollama is selected
  • Added loading state indicator while fetching models
  • Shows helpful message if no models are found
  • Stores fetched models in app state (ollamaModels)
  • Updated TypeScript declarations for the new IPC method

Testing

✅ Tested with local Ollama installation containing 7 different models
✅ Type checking passes
✅ Verified loading state appears during fetch
✅ Confirmed models display correctly after fetch

Related Issue

Fixes #1

- Add IPC handler in main process to fetch from Ollama API
- Update SettingsDialog to fetch models when Ollama is selected
- Add loading state while fetching models
- Show helpful message if no models found
- Store fetched models in app state

Fixes LiamFuller07#1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Dynamically fetch installed Ollama models

1 participant