[PR #18993] [CLOSED] feat: Introduce admin-settable default tags, which determine which model tags are selected by default in chat #112364

Closed
opened 2026-05-18 12:28:00 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/18993
Author: @tarmst
Created: 11/6/2025
Status: Closed

Base: devHead: settable-default-tag


📝 Commits (1)

  • 0ccf76b Allow default tags to be selected when a user opens the selector

📊 Changes

6 files changed (+100 additions, -1 deletions)

View changed files

📝 backend/open_webui/config.py (+5 -0)
📝 backend/open_webui/main.py (+3 -0)
📝 backend/open_webui/routers/configs.py (+4 -0)
📝 src/lib/components/admin/Settings/Models/ConfigureModelsModal.svelte (+84 -1)
📝 src/lib/components/chat/ModelSelector/Selector.svelte (+3 -0)
📝 src/lib/stores/index.ts (+1 -0)

📄 Description

Pull Request Checklist

Discussion: https://github.com/open-webui/open-webui/discussions/17789

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

  • Target branch: Verify that the pull request targets the dev branch. Not targeting the dev branch will lead to immediate closure of the PR.
  • Description: Provide a concise description of the changes made in this pull request down below.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: If necessary, update relevant documentation Open WebUI Docs like environment variables, the tutorials, or other documentation sources.
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
    • None
  • Testing: Perform manual tests to verify the implemented fix/feature works as intended AND does not break any other functionality. Take this as an opportunity to make screenshots of the feature/fix and include it in the PR description.
  • Agentic AI Code: Confirm this Pull Request is not written by any AI Agent or has at least gone through additional human review AND manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR.
    • No LLM or AI was used to write this code.
  • 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?
  • Title Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • feat: Introduces a new feature or enhancement to the codebase

Changelog Entry

Description

  • Allow admins to set default tags which are automatically selected upon a user first opening the model selector.

Added

  • Added default model tags that allow admins to set default tags that appear to users in the chat interface. Only tags that a user has access to can be the default for a user.

Additional Information

If you have a tag attached to a model, for example (qwen25_72b tag):
image

In the same panel you can set default models, you can now also set default tags (Admin Settings > Settings > Models > Gear in the top right > scroll to the bottom):
image

In the main chat interface, the tag will be selected by default:
image

This resets on refresh & does not interfere after a user has already clicked to a different tag.

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.

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 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/18993 **Author:** [@tarmst](https://github.com/tarmst) **Created:** 11/6/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `settable-default-tag` --- ### 📝 Commits (1) - [`0ccf76b`](https://github.com/open-webui/open-webui/commit/0ccf76be1e7cfc6b2c933e2982095736ac90e307) Allow default tags to be selected when a user opens the selector ### 📊 Changes **6 files changed** (+100 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+5 -0) 📝 `backend/open_webui/main.py` (+3 -0) 📝 `backend/open_webui/routers/configs.py` (+4 -0) 📝 `src/lib/components/admin/Settings/Models/ConfigureModelsModal.svelte` (+84 -1) 📝 `src/lib/components/chat/ModelSelector/Selector.svelte` (+3 -0) 📝 `src/lib/stores/index.ts` (+1 -0) </details> ### 📄 Description # Pull Request Checklist Discussion: https://github.com/open-webui/open-webui/discussions/17789 **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Verify that the pull request targets the `dev` branch. **Not targeting the `dev` branch will lead to immediate closure of the PR.** - [x] **Description:** Provide a concise description of the changes made in this pull request down below. - [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. - [x] **Documentation:** If necessary, update relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs) like environment variables, the tutorials, or other documentation sources. - [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - None - [x] **Testing:** Perform manual tests to **verify the implemented fix/feature works as intended AND does not break any other functionality**. Take this as an opportunity to **make screenshots of the feature/fix and include it in the PR description**. - [x] **Agentic AI Code:** Confirm this Pull Request is **not written by any AI Agent** or has at least **gone through additional human review AND manual testing**. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR. - No LLM or AI was used to write this code. - [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? - [x] **Title Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **feat**: Introduces a new feature or enhancement to the codebase # Changelog Entry ### Description - Allow admins to set default tags which are automatically selected upon a user first opening the model selector. ### Added - Added default model tags that allow admins to set default tags that appear to users in the chat interface. Only tags that a user has access to can be the default for a user. --- ### Additional Information If you have a tag attached to a model, for example (`qwen25_72b` tag): <img width="435" height="138" alt="image" src="https://github.com/user-attachments/assets/05bbfa8f-f771-4cef-bbde-c7424f32ef8f" /> In the same panel you can set default models, you can now also set default tags (Admin Settings > Settings > Models > Gear in the top right > scroll to the bottom): <img width="460" height="207" alt="image" src="https://github.com/user-attachments/assets/5212da4e-a27a-4c76-98e7-7f6828bf0420" /> In the main chat interface, the tag will be selected by default: <img width="512" height="148" alt="image" src="https://github.com/user-attachments/assets/9f2cf003-0829-4211-bd39-76a144fbd7a8" /> This resets on refresh & does not interfere after a user has already clicked to a different tag. ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <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-05-18 12:28:00 -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#112364