mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-11 03:38:02 +00:00
fix: Perplexity Search ignores the domain filter list (#32182)
With Perplexity Search as the web search engine, the Domain Filter List had no effect: blocked domains still showed up in the results the model got, and an allowlist let every result through. The filter now applies to Perplexity Search results as it does for the other search engines. Fixes #32005
This commit is contained in:
parent
a92fcdf107
commit
4b088a4a9b
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ def search_perplexity_search(
|
|||
json_response = response.json()
|
||||
|
||||
# Extract citations from the response
|
||||
results = json_response.get('results', [])
|
||||
results = get_filtered_results(json_response.get('results', []), filter_list)
|
||||
|
||||
return [
|
||||
SearchResult(link=result['url'], title=result['title'], snippet=result['snippet']) for result in results
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue