Timothy Jaeryang Baek 2 mesi fa
parent
commit
736b29ddca
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      backend/open_webui/routers/retrieval.py

+ 1 - 1
backend/open_webui/routers/retrieval.py

@@ -1965,7 +1965,7 @@ async def process_web_search(
                     },
                 )
                 for result in search_results
-                if hasattr(result, "snippet")
+                if hasattr(result, "snippet") and result.snippet is not None
             ]
         else:
             loader = get_web_loader(