Prechádzať zdrojové kódy

Update brave.py to use the correct field

fixing issues caused by incorrect field names.
zhangtyzzz 8 mesiacov pred
rodič
commit
ac5567f78d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      backend/open_webui/retrieval/web/brave.py

+ 1 - 1
backend/open_webui/retrieval/web/brave.py

@@ -36,7 +36,7 @@ def search_brave(
 
     return [
         SearchResult(
-            link=result["url"], title=result.get("title"), snippet=result.get("snippet")
+            link=result["url"], title=result.get("title"), snippet=result.get("description")
         )
         for result in results[:count]
     ]