mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-03 15:27:37 -05:00
[PR #9505] [MERGED] Update jina_search.py #22381
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/9505
Author: @binxn
Created: 2/6/2025
Status: ✅ Merged
Merged: 2/7/2025
Merged by: @tjbck
Base:
dev← Head:patch-1📝 Commits (1)
88db4caUpdate jina_search.py📊 Changes
1 file changed (+16 additions, -4 deletions)
View changed files
📝
backend/open_webui/retrieval/web/jina_search.py(+16 -4)📄 Description
Description
Updated Jina's search function in order to use POST and make use of the result count passed by the user, as well as adding a header to not return the images possibly found on the search reducing token usage.
Added
"Content-Type": "application/json"header"X-Retain-Images": "none"headerpayloadvariable containing the query and result count (capped at 10)Changed
Removed
[:count]cap on thedata["data"]loop because we are already asking Jina to return the result count specified by the userAdditional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.