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:
Classic298 2026-10-10 17:54:25 +02:00 • committed by GitHub
parent a92fcdf107
commit 4b088a4a9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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