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

Fixed the API endpoint /api/tags when the model list is empty. #4424

Merged
merged 2 commits into from
May 14, 2024

Conversation

machimachida
Copy link
Contributor

Summary

Fixed an issue with the /api/tags endpoint where an empty model list was returning {models: null}. The endpoint now returns {models: []} when no models are available.

server/routes.go Outdated Show resolved Hide resolved
@jmorganca
Copy link
Member

Thanks for the PR!

@jmorganca jmorganca merged commit 798b107 into ollama:main May 14, 2024
12 checks passed
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.

None yet

2 participants