mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
Merge pull request #14622 from Zyfax/patch-2
fix: remove trailing slash form test connection api url
This commit is contained in:
commit
34a8b95cc3
1 changed files with 6 additions and 0 deletions
|
|
@ -49,6 +49,9 @@
|
||||||
let loading = false;
|
let loading = false;
|
||||||
|
|
||||||
const verifyOllamaHandler = async () => {
|
const verifyOllamaHandler = async () => {
|
||||||
|
// remove trailing slash from url
|
||||||
|
url = url.replace(/\/$/, '');
|
||||||
|
|
||||||
const res = await verifyOllamaConnection(localStorage.token, {
|
const res = await verifyOllamaConnection(localStorage.token, {
|
||||||
url,
|
url,
|
||||||
key
|
key
|
||||||
|
|
@ -62,6 +65,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const verifyOpenAIHandler = async () => {
|
const verifyOpenAIHandler = async () => {
|
||||||
|
// remove trailing slash from url
|
||||||
|
url = url.replace(/\/$/, '');
|
||||||
|
|
||||||
const res = await verifyOpenAIConnection(
|
const res = await verifyOpenAIConnection(
|
||||||
localStorage.token,
|
localStorage.token,
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue