mirror of
https://github.com/open-webui/open-webui
synced 2025-06-15 10:51:13 +00:00
fix: remove ending slash form test connection url
Removes the ending slash when testing openai and ollama api url.
This commit is contained in:
parent
3c32d2cada
commit
e353f15a3c
@ -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 New Issue
Block a user