fix: remove ending slash form test connection url

Removes the ending slash when testing openai and ollama api url.
This commit is contained in:
Zyfax 2025-06-03 09:11:01 +02:00 committed by GitHub
parent 3c32d2cada
commit e353f15a3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,6 +49,9 @@
let loading = false;
const verifyOllamaHandler = async () => {
// remove trailing slash from url
url = url.replace(/\/$/, '');
const res = await verifyOllamaConnection(localStorage.token, {
url,
key
@ -62,6 +65,9 @@
};
const verifyOpenAIHandler = async () => {
// remove trailing slash from url
url = url.replace(/\/$/, '');
const res = await verifyOpenAIConnection(
localStorage.token,
{