Perplexity integration (AI). Imported from open-connector.
https://api.perplexity.ai/v1/models
/search
| Param | Type | Required | Description |
|---|---|---|---|
| query | string | required | One or more raw web search queries. |
| country | string | optional | The ISO 3166-1 alpha-2 country code used to localize search results. |
| max_results | integer | optional | The maximum number of search results to return. |
| search_after_date | string | optional | Only return content published after this date, for example 01/15/2024. |
| search_before_date | string | optional | Only return content published before this date, for example 12/31/2024. |
| max_tokens_per_page | integer | optional | The maximum number of tokens to retrieve from each webpage. |
| search_domain_filter | array | optional | Only return search results from these domains or URL prefixes. |
/v1/sonar
| Param | Type | Required | Description |
|---|---|---|---|
| model | string | required | The Sonar model to use for the chat completion. |
| messages | array | required | The ordered conversation messages. |
| max_tokens | integer | optional | The maximum number of tokens to generate. |
| temperature | number | optional | The sampling temperature for generation. |
| top_p | number | optional | The nucleus sampling threshold. |
| top_k | integer | optional | The number of top tokens to consider per step. |
| stream | boolean | optional | Whether to stream the response. This connector only accepts false or an omitted… |
| return_images | boolean | optional | Whether to include image references in the response. |
| return_citations | boolean | optional | Whether to include citations in the response. |
| disable_search | boolean | optional | Whether to disable web search grounding for this request. |
| search_domain_filter | array | optional | Only search within these domains or URL prefixes. |
| search_recency_filter | string | optional | A recency filter such as day, week, month, or year. |
| presence_penalty | number | optional | The penalty applied to tokens that have already appeared. |
| frequency_penalty | number | optional | The penalty applied based on token frequency. |
/v1/embeddings
| Param | Type | Required | Description |
|---|---|---|---|
| model | string | required | The embedding model identifier. |
| input | string | required | One or more input strings to embed. |
| dimensions | integer | optional | The target embedding dimension count. |
| encoding_format | string | optional | The output encoding format for embeddings. |