Search_domain_filter still not working

polarbear
Thu, 11 Dec 2025 19:56:17 +0000
Bug Reports

Hi all - there have been several bug reports about the search_domain_filter feature not working at all. I’ve tested and it’s still not working.

Search_domain_filter not working, getting citations outside my domain list Bug Reports

Hi all, I’m trying to make a api request like this url = "https://api.perplexity.ai/chat/completions" payload = { "model": "llama-3.1-sonar-large-128k-online", "messages": [ { "role": "system", "content": ( "Help find the latest news for the user through as many sources as possible. Compile " "it in an unbiased way" ), }, {"role": "user", "content"…

Search_domain_filter issues Bug Reports

The OpenAI API doesn’t know anything about Perplexity’s parameters. If you are ever using the OpenAI API for another API, and the other API has unique parameters, you have to pass them in extra_body. response = client.chat.completions.create( model="sonar-pro", messages=[ { "role": "user", "content": "What is the most recent version of Python?" } ], extra_body={"search_domain_filter": ["-python.org"]}, ) We know this works as well because…

2 posts - 1 participant