mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #23061] [CLOSED] fix: refresh models after saving direct connections #50052
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/23061
Author: @yang1002378395-cmyk
Created: 3/26/2026
Status: ❌ Closed
Base:
dev← Head:fix/connection-refresh-models📝 Commits (4)
efb0f9afix: add pagination to chat list endpoints to prevent OOMdb10981fix: clear stale Redis tasks on startup949cf59fix: use backend proxy for terminal server verificationab34f87fix: refresh models after saving direct connections📊 Changes
7 files changed (+139 additions, -37 deletions)
View changed files
📝
backend/open_webui/main.py(+3 -0)📝
backend/open_webui/models/chats.py(+19 -9)📝
backend/open_webui/routers/chats.py(+15 -6)📝
backend/open_webui/routers/configs.py(+42 -0)📝
backend/open_webui/tasks.py(+31 -0)📝
src/lib/apis/configs/index.ts(+24 -19)📝
src/lib/components/chat/SettingsModal.svelte(+5 -3)📄 Description
Description
When adding or updating a direct connection, the models list was not refreshed, causing new models to not appear until page reload.
Changes
refreshparameter to the localgetModels()functionrefresh=truewhendirectConnectionsis in the updated settingsTest Plan
Fixes #23060
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.