Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Prefetch model list from Ollama #3781

Open
Jawahars opened this issue Dec 28, 2024 · 0 comments
Open

[FEATURE] Prefetch model list from Ollama #3781

Jawahars opened this issue Dec 28, 2024 · 0 comments

Comments

@Jawahars
Copy link

Describe the feature you'd like

Enhancement Proposal: Prefetch Local Models for Model Name Input
Current Behavior:
The model name is a free-text textbox, which can lead to errors if an incorrect name is entered.

Proposed Change:
Fetch the list of locally available models using the Ollama API. Use this list to:

Autofill suggestions in the textbox, or
Replace the textbox with a dropdown of available models.

Benefits:

Prevents incorrect model names.
Improves user experience.
Fallback: If the API call fails, retain the current free-text behavior with a warning.

Additional context
image
List model API defined by Ollama - https://github.com/ollama/ollama/blob/main/docs/api.md#list-local-models

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

No branches or pull requests

1 participant