fix: properly handle full URLs in form_data.path

This commit is contained in:
Konosuke Kachi
2025-07-28 23:34:23 +09:00
parent f2da65b778
commit 0a8f482264
2 changed files with 20 additions and 11 deletions
+6 -2
View File
@@ -7,7 +7,11 @@ from open_webui.utils.auth import get_admin_user, get_verified_user
from open_webui.config import get_config, save_config
from open_webui.config import BannerModel
from open_webui.utils.tools import get_tool_server_data, get_tool_servers_data
from open_webui.utils.tools import (
get_tool_server_data,
get_tool_servers_data,
build_tool_server_url,
)
router = APIRouter()
@@ -135,7 +139,7 @@ async def verify_tool_servers_config(
elif form_data.auth_type == "session":
token = request.state.token.credentials
url = f"{form_data.url}/{form_data.path}"
url = build_tool_server_url(form_data.url, form_data.path)
return await get_tool_server_data(token, url)
except Exception as e:
raise HTTPException(