mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #14622] [MERGED] fix: remove trailing slash form test connection api url #23526
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/14622
Author: @Zyfax
Created: 6/3/2025
Status: ✅ Merged
Merged: 6/3/2025
Merged by: @tjbck
Base:
dev← Head:patch-2📝 Commits (1)
e353f15fix: remove ending slash form test connection url📊 Changes
1 file changed (+6 additions, -0 deletions)
View changed files
📝
src/lib/components/AddConnectionModal.svelte(+6 -0)📄 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
Since the trailing slash is removed from the URL when saving the connection, the test connection will fail for providers whose API URLs end with a slash. This fix will also remove the trailing slash when the connection is tested.
Example:
https://generativelanguage.googleapis.com/v1beta/openai/will becomehttps://generativelanguage.googleapis.com/v1beta/openai//models, which will cause the test to fail.It appears that Gemini now supports model listing. For more information, see: https://ai.google.dev/gemini-api/docs/openai#list-models
Fixed
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.