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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23062
Author: @yang1002378395-cmyk
Created: 3/26/2026
Status: ❌ Closed
Base:
dev← Head:fix/connection-refresh-models📝 Commits (1)
032a6d4fix: 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
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.