Update brave.py to use the correct field

fixing issues caused by incorrect field names.
This commit is contained in:
zhangtyzzz 2025-06-25 09:11:58 +08:00 committed by GitHub
parent b5f4c85bb1
commit ac5567f78d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]
]