mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
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/20418
Author: @Classic298
Created: 1/6/2026
Status: ❌ Closed
Base:
dev← Head:fix-18450📝 Commits (1)
aff2c1dfix: default model not populating for standard users (#18450)📊 Changes
4 files changed (+16 additions, -8 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+4 -2)📝
src/lib/components/notes/NoteEditor.svelte(+4 -2)📝
src/lib/components/playground/Chat.svelte(+4 -2)📝
src/lib/components/playground/Completions.svelte(+4 -2)📄 Description
fix: default model not populating for standard users (#18450)
The admin's default model setting was not being applied to standard users when opening or refreshing the chat page. This occurred because the check for user-configured models used a truthy check on the models array, which evaluates to true even for empty arrays.
When a user's saved model was removed or access was revoked, their settings would contain an empty models array. This empty array satisfied the truthy condition, preventing the fallback to the admin-configured default models.
Changed the condition to explicitly verify the user has at least one valid, non-empty model ID before using their settings. If not, the admin default models are now correctly applied as intended.
Affected components: Chat, NoteEditor, Playground Chat, Playground Completions
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.