Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
Target branch: Please verify that the pull request targets the dev branch.
Description: Provide a concise description of the changes made in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources? No update neede as this is a fix
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation? - No New Dependencies
Testing: Have you written and run sufficient tests to validate the changes?
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?
Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
fix: Bug fix or error correction
Changelog Entry
Description
Fixed Azure URL detection to include Azure US Government cloud endpoints (*.azure.us domains), enabling automatic Azure mode detection for government cloud deployments
Added
Changed
Updated Azure detection logic in AddConnectionModal.svelte to include azure.us alongside existing azure.com and cognitive.microsoft.com patterns
Deprecated
Removed
Fixed
Azure URL validation now properly recognizes Azure US Government cloud endpoints (*.azure.us)
Security
Breaking Changes
Additional Information
Azure US Government cloud uses *.azure.us domains instead of standard *.azure.com domains
Without this fix, users had to manually configure Azure settings even when using valid Azure Government endpoints
This change ensures the UI automatically switches to Azure mode for both commercial and government Azure clouds
Screenshots or Videos
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.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/16575
**Author:** [@rahepler2](https://github.com/rahepler2)
**Created:** 8/13/2025
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `rahepler2-openai-azureGov-fix`
---
### 📝 Commits (1)
- [`977880c`](https://github.com/open-webui/open-webui/commit/977880c0646b8797dd8c6e20848f33fdfe775b63) Update AddConnectionModal.svelte
### 📊 Changes
**1 file changed** (+1 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `src/lib/components/AddConnectionModal.svelte` (+1 -1)
</details>
### 📄 Description
# Pull Request Checklist
### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request.
**Before submitting, make sure you've checked the following:**
- [x] **Target branch:** Please verify that the pull request targets the `dev` branch.
- [x] **Description:** Provide a concise description of the changes made in this pull request.
- [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:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? No update neede as this is a fix
- [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - No New Dependencies
- [x] **Testing:** Have you written and run sufficient tests to validate the changes?
- [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] **Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following:
- **fix**: Bug fix or error correction
# Changelog Entry
### Description
- Fixed Azure URL detection to include Azure US Government cloud endpoints (*.azure.us domains), enabling automatic Azure mode detection for government cloud deployments
### Added
-
### Changed
- Updated Azure detection logic in AddConnectionModal.svelte to include azure.us alongside existing azure.com and cognitive.microsoft.com patterns
### Deprecated
-
### Removed
-
### Fixed
- Azure URL validation now properly recognizes Azure US Government cloud endpoints (*.azure.us)
### Security
-
### Breaking Changes
-
---
### Additional Information
- Azure US Government cloud uses *.azure.us domains instead of standard *.azure.com domains
- Without this fix, users had to manually configure Azure settings even when using valid Azure Government endpoints
- This change ensures the UI automatically switches to Azure mode for both commercial and government Azure clouds
### Screenshots or Videos
-
### Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
---
<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/16575
Author: @rahepler2
Created: 8/13/2025
Status: ❌ Closed
Base:
dev← Head:rahepler2-openai-azureGov-fix📝 Commits (1)
977880cUpdate AddConnectionModal.svelte📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/lib/components/AddConnectionModal.svelte(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
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.