From ef036529b55c0e94c874dc6c16a2c0e5345dc542 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 17 Feb 2026 01:11:56 -0600 Subject: [PATCH] chore: format --- backend/open_webui/routers/images.py | 4 +++- backend/open_webui/utils/tools.py | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/open_webui/routers/images.py b/backend/open_webui/routers/images.py index 995262dc5..d3bc3f8ee 100644 --- a/backend/open_webui/routers/images.py +++ b/backend/open_webui/routers/images.py @@ -954,7 +954,9 @@ async def image_edits( "prompt": form_data.prompt, **({"n": form_data.n} if form_data.n else {}), **({"size": size} if size else {}), - **({"background": form_data.background} if form_data.background else {}), + **( + {"background": form_data.background} if form_data.background else {} + ), **( {} if re.match( diff --git a/backend/open_webui/utils/tools.py b/backend/open_webui/utils/tools.py index f89c9b09d..aeba21339 100644 --- a/backend/open_webui/utils/tools.py +++ b/backend/open_webui/utils/tools.py @@ -447,9 +447,7 @@ def get_builtin_tools( # Model has attached knowledge - only allow semantic search within it builtin_functions.append(query_knowledge_files) - knowledge_types = { - item.get("type") for item in model_knowledge - } + knowledge_types = {item.get("type") for item in model_knowledge} if "file" in knowledge_types or "collection" in knowledge_types: builtin_functions.append(view_file) if "note" in knowledge_types: