mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #23492] [CLOSED] llama-swap status and eject #42852
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23492
Author: @alvin-000
Created: 4/7/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
1f6ac70llama-swap status and eject📊 Changes
5 files changed (+203 additions, -22 deletions)
View changed files
📝
backend/open_webui/routers/ollama.py(+42 -0)📝
backend/open_webui/utils/models.py(+19 -1)➕
backend/open_webui/utils/running_models.py(+85 -0)📝
src/lib/components/AddConnectionModal.svelte(+35 -1)📝
src/lib/components/chat/ModelSelector/ModelItem.svelte(+22 -20)📄 Description
I was able to add support for llama-swap (loaded model status and ability to unload model directly from Open WebUI), similar to what already exists with Ollama based connections. Setting is set separately in OpenAI compatible AI to avoid unnecessary http requests when not using llama-swap as OpenAI connection. Please consider adding support for llama-swap features, even if its not via this PR. Thanks.
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.