From 138e985d6631a52b19b983c3a8f597549cde9471 Mon Sep 17 00:00:00 2001 From: Juan Calderon-Perez <835733+gaby@users.noreply.github.com> Date: Fri, 4 Apr 2025 08:38:24 -0400 Subject: [PATCH] Rename field to include_content --- backend/open_webui/routers/files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/routers/files.py b/backend/open_webui/routers/files.py index b7d64748b..d876182f7 100644 --- a/backend/open_webui/routers/files.py +++ b/backend/open_webui/routers/files.py @@ -162,13 +162,13 @@ def upload_file( @router.get("/", response_model=list[FileModelResponse]) -async def list_files(user=Depends(get_verified_user), content: bool = Query(True)): +async def list_files(user=Depends(get_verified_user), include_content: bool = Query(True)): if user.role == "admin": files = Files.get_files() else: files = Files.get_files_by_user_id(user.id) - if not content: + if not include_content: for file in files: file.data['content'] = "" return files