From 58d7ca35e3e48566ff5f2c44993b895f0599a882 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 14 Sep 2025 10:27:07 +0200 Subject: [PATCH] refac --- backend/open_webui/retrieval/utils.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/open_webui/retrieval/utils.py b/backend/open_webui/retrieval/utils.py index d388d6ab45..a910a36f93 100644 --- a/backend/open_webui/retrieval/utils.py +++ b/backend/open_webui/retrieval/utils.py @@ -544,14 +544,11 @@ def get_sources_from_items( elif item.get("type") == "chat": # Chat Attached chat = Chats.get_chat_by_id(item.get("id")) - print("chat", chat) if chat and (user.role == "admin" or chat.user_id == user.id): messages_map = chat.chat.get("history", {}).get("messages", {}) message_id = chat.chat.get("history", {}).get("currentId") - print(messages_map, message_id) - if messages_map and message_id: # Reconstruct the message list in order message_list = get_message_list(messages_map, message_id)