[PR #12321] [CLOSED] [feat] Allows the listing and unloading of models via the Ollama Manage Models admin interface #45946

Closed
opened 2026-04-29 20:32:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/12321
Author: @TravisArmstrong
Created: 4/2/2025
Status: Closed

Base: devHead: Ollama-Model-Unload-Support


📝 Commits (1)

  • 4a7efce Allowing the listing and unloading of models via the Ollama Manage Models admin interface

📊 Changes

2 files changed (+180 additions, -1 deletions)

View changed files

📝 src/lib/apis/ollama/index.ts (+98 -0)
📝 src/lib/components/admin/Settings/Models/Manage/ManageOllama.svelte (+82 -1)

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Discussion was posted here and shared in Discord but did not receive much feedback.
Code has been slightly improved since then.
GitHub Discussion

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
    Targets DEV
  • Description: Provide a concise description of the changes made in this pull request.
    Allows the listing and unloading of models via the Ollama Manage Models admin interface
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
    First version v.1.0 - Allows the listing and unloading of models via the Ollama Manage Models admin interface
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
    Glad to add documentation once merged.
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
    No new dependencies
  • Testing: Have you written and run sufficient tests to validate the changes?
    Testing performed in DEV environment but no automated test sets created yet
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
    Requested code review in Discord and GitHub Discussions but did not receive any feedback
  • Prefix: To clearly categorize this pull request, prefix the pull request title:
    • feat: Introduces a new feature or enhancement to the codebase

Changelog Entry

Description

  • [Modifies the admin Ollama settings page to allow the listing and unloading of models. Supports multiple Ollama connections.]

Added

  • [Dropdowns to list and unload currently loaded Ollama models]

Changed

  • [Added backend Ollama APIs getOllamaModelsLoaded() and unloadModel()]
  • [Added frontend Admin Ollama settings dropdown to list current loaded Ollama models and the ability to unload]

Additional Information

Screenshots or Videos

  • [Included in the linked GitHub Discussion]

🔄 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/open-webui/open-webui/pull/12321 **Author:** [@TravisArmstrong](https://github.com/TravisArmstrong) **Created:** 4/2/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `Ollama-Model-Unload-Support` --- ### 📝 Commits (1) - [`4a7efce`](https://github.com/open-webui/open-webui/commit/4a7efceff84261196f95ff83a2d2d6459d51b0d6) Allowing the listing and unloading of models via the Ollama Manage Models admin interface ### 📊 Changes **2 files changed** (+180 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/apis/ollama/index.ts` (+98 -0) 📝 `src/lib/components/admin/Settings/Models/Manage/ManageOllama.svelte` (+82 -1) </details> ### 📄 Description # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. Discussion was posted here and shared in Discord but did not receive much feedback. Code has been slightly improved since then. [GitHub Discussion](https://github.com/open-webui/open-webui/discussions/11730) **Before submitting, make sure you've checked the following:** - [x] *Target branch:* Please verify that the pull request targets the `dev` branch. **Targets DEV** - [x] *Description:* Provide a concise description of the changes made in this pull request. **Allows the listing and unloading of models via the Ollama Manage Models admin interface** - [x] *Changelog:* Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. **First version v.1.0 - Allows the listing and unloading of models via the Ollama Manage Models admin interface** - [x] *Documentation:* Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? **Glad to add documentation once merged.** - [x] *Dependencies:* Are there any new dependencies? Have you updated the dependency versions in the documentation? **No new dependencies** - [x] *Testing:* Have you written and run sufficient tests to validate the changes? **Testing performed in DEV environment but no automated test sets created yet** - [x] *Code review:* Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? **Requested code review in Discord and GitHub Discussions but did not receive any feedback** - [x] **Prefix:** To clearly categorize this pull request, prefix the pull request title: - **feat**: Introduces a new feature or enhancement to the codebase # Changelog Entry ### Description - [Modifies the admin Ollama settings page to allow the listing and unloading of models. Supports multiple Ollama connections.] ### Added - [Dropdowns to list and unload currently loaded Ollama models] ### Changed - [Added backend Ollama APIs getOllamaModelsLoaded() and unloadModel()] - [Added frontend Admin Ollama settings dropdown to list current loaded Ollama models and the ability to unload] ### Additional Information - [Similar to other user's model unload tools, but built in natively and supports listing and unloading of multiple models accross multiple Ollama connections.] - https://openwebui.com/f/pkeffect/ollama_model_unload - https://openwebui.com/f/userx/unload_models_from_vram ### Screenshots or Videos - [Included in the linked GitHub Discussion] --- <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-29 20:32:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#45946