Skip to content

fix(providers): surface a connected Ollama's pulled models in the picker - #387

Open
aniketshukla1 wants to merge 1 commit into
andrewyng:mainfrom
aniketshukla1:fix/ollama-models-in-picker
Open

fix(providers): surface a connected Ollama's pulled models in the picker#387
aniketshukla1 wants to merge 1 commit into
andrewyng:mainfrom
aniketshukla1:fix/ollama-models-in-picker

Conversation

@aniketshukla1

Copy link
Copy Markdown

Closes #386

The composer's model picker comes from get_settings()["models"], which lists the curated matrix plus user-added ids. Ollama has no matrix entries — its models are whatever the user pulled locally — and the live /api/tags list was only used for the provider's "suggested models" hint, never merged into the picker. So a user who connects Ollama and has models pulled sees nothing selectable and cannot run any Ollama model.

Merge the live _ollama_models() list into the selectable set in get_settings when the cached liveness probe reports Ollama is up, de-duplicated against curated / user-added ids.

Adds regression tests: live models appear, are hidden when the server is down, and are not duplicated when the user has also added one by hand.

The composer's model picker comes from get_settings()["models"], which lists the
curated matrix plus user-added ids. Ollama has no matrix entries — its models are
whatever the user pulled locally — and the live /api/tags list was only used for the
provider's "suggested models" hint, never merged into the picker. So a user who connects
Ollama and has models pulled sees nothing selectable and cannot run any Ollama model.

Merge the live _ollama_models() list into the selectable set in get_settings when the
cached liveness probe reports Ollama is up, de-duplicated against curated / user-added ids.

Adds regression tests: live models appear, are hidden when the server is down, and are
not duplicated when the user has also added one by hand.
@aniketshukla1

Copy link
Copy Markdown
Author

@andrewyng any news on this one ? Can we merge this ?
Thanks

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.

Connected Ollama shows no models in the picker — pulled models never surface

1 participant