[PR #4424] Fixed the API endpoint /api/tags when the model list is empty. #11488

Closed
opened 2026-04-12 23:31:09 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/4424

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/ollama/ollama/pull/4424 **State:** closed **Merged:** Yes --- ## 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.
GiteaMirror added the pull-request label 2026-04-12 23:31:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#11488