[PR #13179] [MERGED] app/ui: fix model capabilities not updating after download completion #45357

Closed
opened 2026-04-25 01:04:32 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13179
Author: @hoyyeva
Created: 11/20/2025
Status: Merged
Merged: 12/10/2025
Merged by: @hoyyeva

Base: mainHead: hoyyeva/model-capabilities-after-download


📝 Commits (1)

  • 36fd28c app/ui: fix model capabilities not updating after download completion

📊 Changes

2 files changed (+19 additions, -114 deletions)

View changed files

📝 app/ui/app/src/hooks/useChats.ts (+19 -0)
app/ui/app/src/hooks/useDownloadModel.ts (+0 -114)

📄 Description

This PR partially fixes #12950.

Model capabilities (such as vision support) were not being detected after a model finished downloading during chat. The /api/show endpoint was never called after the download completed, so the UI continued to treat the model as lacking capabilities, resulting in incorrect error messages — for example, indicating that a vision model does not support image input.

This PR adds capability-fetching logic to the chat download completion handler to ensure that model capabilities are properly available after the download.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13179 **Author:** [@hoyyeva](https://github.com/hoyyeva) **Created:** 11/20/2025 **Status:** ✅ Merged **Merged:** 12/10/2025 **Merged by:** [@hoyyeva](https://github.com/hoyyeva) **Base:** `main` ← **Head:** `hoyyeva/model-capabilities-after-download` --- ### 📝 Commits (1) - [`36fd28c`](https://github.com/ollama/ollama/commit/36fd28c9d424a45d0795a66c136d137ddc016262) app/ui: fix model capabilities not updating after download completion ### 📊 Changes **2 files changed** (+19 additions, -114 deletions) <details> <summary>View changed files</summary> 📝 `app/ui/app/src/hooks/useChats.ts` (+19 -0) ➖ `app/ui/app/src/hooks/useDownloadModel.ts` (+0 -114) </details> ### 📄 Description This PR partially fixes #12950. Model capabilities (such as vision support) were not being detected after a model finished downloading during chat. The /api/show endpoint was never called after the download completed, so the UI continued to treat the model as lacking capabilities, resulting in incorrect error messages — for example, indicating that a vision model does not support image input. This PR adds capability-fetching logic to the chat download completion handler to ensure that model capabilities are properly available after the download. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 01:04:32 -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#45357