From fd1e59b25ff68ff015ce84707839084157df6045 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:18:13 -0400 Subject: [PATCH] fix: an array query parameter reaches an OpenAPI tool server as repeated values (#32677) --- backend/open_webui/utils/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/utils/tools.py b/backend/open_webui/utils/tools.py index 212d283129..18eb0781f3 100644 --- a/backend/open_webui/utils/tools.py +++ b/backend/open_webui/utils/tools.py @@ -1867,7 +1867,7 @@ async def execute_tool_server( final_url = final_url.replace(f'{{{key}}}', quote(str(value), safe='')) if query_params: - final_url = f'{final_url}?{urlencode(query_params)}' + final_url = f'{final_url}?{urlencode(query_params, doseq=True)}' request_body_content = operation.get('requestBody', {}).get('content') if request_body_content and params: