[PR #23062] [CLOSED] fix: refresh models after saving direct connections #42635

Closed
opened 2026-04-25 14:27:40 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/23062
Author: @yang1002378395-cmyk
Created: 3/26/2026
Status: Closed

Base: devHead: fix/connection-refresh-models


📝 Commits (1)

  • 032a6d4 fix: refresh models after saving direct connections

📊 Changes

1 file changed (+5 additions, -3 deletions)

View changed files

📝 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

  • Added refresh parameter to the local getModels() function
  • Pass refresh=true when directConnections is in the updated settings
  • Forces backend to re-fetch models from all configured providers

Test Plan

  1. Open Settings > Connections
  2. Add a new OpenAI-compatible connection (e.g., OpenRouter, Together AI)
  3. Save the connection
  4. Verify that models from the new connection appear in the model selector without page reload

Fixes #23060

Checklist

  • My code follows the existing code style
  • I have tested my changes locally
  • My commit messages follow the Conventional Commits spec
  • I have signed the CLA: I confirm that my contributions are my own and I have the right to contribute them under the project's license

🔄 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/23062 **Author:** [@yang1002378395-cmyk](https://github.com/yang1002378395-cmyk) **Created:** 3/26/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/connection-refresh-models` --- ### 📝 Commits (1) - [`032a6d4`](https://github.com/open-webui/open-webui/commit/032a6d479880f9f8ac0260a982a42f5a60aaec50) fix: refresh models after saving direct connections ### 📊 Changes **1 file changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/SettingsModal.svelte` (+5 -3) </details> ### 📄 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 - Added `refresh` parameter to the local `getModels()` function - Pass `refresh=true` when `directConnections` is in the updated settings - Forces backend to re-fetch models from all configured providers ## Test Plan 1. Open Settings > Connections 2. Add a new OpenAI-compatible connection (e.g., OpenRouter, Together AI) 3. Save the connection 4. Verify that models from the new connection appear in the model selector without page reload Fixes #23060 ## Checklist - [x] My code follows the existing code style - [x] I have tested my changes locally - [x] My commit messages follow the [Conventional Commits spec](https://www.conventionalcommits.org/) - [x] I have signed the CLA: I confirm that my contributions are my own and I have the right to contribute them under the project's license --- <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-04-25 14:27:40 -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#42635