mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-07 02:58:21 +00:00
fix: omit None-valued query params in execute_tool_server (#22144)
This commit is contained in:
parent
b5c3395f79
commit
d040953c76
1 changed files with 2 additions and 1 deletions
|
|
@ -1247,7 +1247,8 @@ async def execute_tool_server(
|
|||
if param_in == "path":
|
||||
path_params[param_name] = params[param_name]
|
||||
elif param_in == "query":
|
||||
query_params[param_name] = params[param_name]
|
||||
if params[param_name] is not None:
|
||||
query_params[param_name] = params[param_name]
|
||||
|
||||
final_url = f"{url}{route_path}"
|
||||
for key, value in path_params.items():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue