mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 10:04:14 -05:00
[PR #14764] [CLOSED] feat: Pin models to the sidebar #10377
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/14764
Author: @Classic298
Created: 6/7/2025
Status: ❌ Closed
Base:
dev← Head:pin-model-to-sidebar📝 Commits (3)
b9f8337Feat/pin models to sidebar (#5)03d496ffix: create modelca78c60feat: better design, collapsible sidebar pinned models and extra button in workspace and admin settings📊 Changes
9 files changed (+360 additions, -9 deletions)
View changed files
➕
backend/open_webui/migrations/versions/beb99ce2cdd8_add_pinned_to_sidebar_to_model.py(+33 -0)📝
backend/open_webui/models/models.py(+19 -9)📝
backend/open_webui/routers/models.py(+47 -0)📝
src/lib/apis/models/index.ts(+31 -0)📝
src/lib/components/admin/Settings/Models/ModelMenu.svelte(+53 -0)📝
src/lib/components/chat/Chat.svelte(+29 -0)📝
src/lib/components/layout/Sidebar.svelte(+77 -0)📝
src/lib/components/workspace/Models/ModelEditor.svelte(+24 -0)📝
src/lib/components/workspace/Models/ModelMenu.svelte(+47 -0)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.feat: Implement Pin Model to Sidebar Feature
Addresses:
Core intention of this PR:
This pull request introduces a new feature allowing you to pin models to the sidebar for quick access. You can pin/unpin models from both the Admin Model Settings and the Workspace Model Editor.
Pinned models appear in a dedicated section in the sidebar, respecting your permissions and model visibility (active/hidden status).
Clicking a pinned model selects it for a new chat, updating the URL and the main model selector UI.
Hiding a model or disabling a model will still hide it from the pinned sidebar area to preserve expected behaviour.
Changelog Entry
Description
Introduces a "Pin model to sidebar" feature, allowing you to quickly access your favorite models directly from the sidebar. This enhances your experience by providing customizable shortcuts to frequently used models.
Added
pinned_to_sidebarin theModeldatabase schema and corresponding Pydantic models.ModelEditor.svelte) to pin/unpin base models.ModelEditor.svelte) to pin/unpin custom models.Sidebar.svelte./?model=MODEL_ID) and selects it for a new chat.GET /api/v1/models/pinnedto fetch models that are pinned, active, not hidden, and accessible by you.Chat.sveltenow listens to URL changes for themodelquery parameter, updating the selected model in the UI and for new chat sessions when a pinned model is clicked.Additional Information
Screenshots or Videos
!!! VIDEO NO LONGER 100% UP-TO-DATE !!!
Latest commit changed design of sidebar pinned model area and made it collapsible.
https://github.com/user-attachments/assets/1f3d1da0-1f69-4051-8837-725825e6324c
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.