mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #14049] [MERGED] fix: web search optional fields #23369
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/14049
Author: @mjmendo
Created: 5/19/2025
Status: ✅ Merged
Merged: 5/20/2025
Merged by: @tjbck
Base:
dev← Head:web_search_optional_fields📝 Commits (2)
d6ad96afix: use get method for title and snippet in search results897727cMerge branch 'open-webui:main' into web_search_optional_fields📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
backend/open_webui/retrieval/web/searchapi.py(+1 -1)📝
backend/open_webui/retrieval/web/serpapi.py(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
When serpapi was introduced, the snippet field was not treated as optional. The searchapi has the same problem. All the other search methods comply.
This PR adds the null-check for the snippet and title fields in the search results.
Changed
searchapiandserpapiContributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.