Browse Source

Merge pull request #15276 from zhangtyzzz/update_brave_search

[fix] Update brave.py to use the correct field
Tim Jaeryang Baek 3 months ago
parent
commit
d60c800d66
1 changed files with 1 additions and 1 deletions
  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]
     ]