Search_domain_filter argument for Python API

Hello, I have been using the Python API to automate Perplexity queries. I noticed in the chat completions docs that there is an argument “search_domain_filter”, but when trying to use it in Python I get an error, TypeError: create() got an unexpected keyword argument 'search_domain_filter'

Below is my code for creating the chat:

    response = client.chat.completions.create(
        model="llama-3.1-sonar-{}-128k-online".format(size),
        messages=messages,
        temperature=0,
        search_domain_filter=["https://philanthropynewsdigest.org","https://news.mongabay.com","https://www.insidephilanthropy.com"]
    )

Is the search_domain_filter argument available in the python API? Thanks!

1 Like

That is an API parameter for another company’s service.

1 Like