=== AI Provider for Perplexity ===

Contributors: khokansardar
Requires at least: 6.9
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://spdx.org/licenses/GPL-2.0-or-later.html
Tags: ai, perplexity, sonar, llm

AI Provider for Perplexity for the WordPress AI Client.

== Description ==

This plugin provides the Perplexity implementation for the WordPress AI Client. It registers Perplexity as an available AI provider, allowing other plugins built on the WordPress AI Client to generate web-grounded text using Perplexity's Sonar models (Sonar, Sonar Pro, Sonar Reasoning, Sonar Reasoning Pro, and Sonar Deep Research).

The plugin connects to Perplexity's OpenAI-compatible Chat Completions API. Bring your own API key from the [Perplexity API settings](https://www.perplexity.ai/account/api/keys).

Supported capabilities:

* Web-grounded text generation (chat) with the Sonar model family
* Chat history / multi-turn conversations
* JSON / structured output

== Frequently Asked Questions ==

= Does this plugin work on its own? =

No, this plugin requires the PHP AI Client (and a consuming AI feature plugin) to be installed and activated. It provides the Perplexity-specific implementation that the PHP AI Client uses.

= Where do I get an API key? =

Create an API key in the [Perplexity API settings](https://www.perplexity.ai/account/api/keys). The key is configured through the AI Client / Connectors interface, not in this plugin directly.

= Which models are supported? =

The Sonar chat models: Sonar, Sonar Pro, Sonar Reasoning, Sonar Reasoning Pro, and Sonar Deep Research. Perplexity does not expose a public model listing endpoint for these chat models, so the supported models are defined within the plugin.

== External services ==

This plugin connects to the Perplexity API to provide web-grounded text generation with Perplexity's Sonar models. It is required for the plugin's core purpose: it registers Perplexity as a provider for the WordPress AI Client so that AI features can generate responses.

The plugin sends a request to Perplexity's API (https://api.perplexity.ai) each time a consuming AI feature generates content through the Perplexity provider. Each request includes your Perplexity API key (for authentication) and the input you submit for generation — such as the prompt text and any chat messages. No request is sent unless an AI feature actively triggers a generation, and no data is sent until you have configured a Perplexity API key. The plugin does not send any data on its own.

This service is provided by Perplexity AI. Please review their terms and privacy policy:

* Terms of Service: https://www.perplexity.ai/hub/legal/perplexity-api-terms-of-service
* Privacy Policy: https://www.perplexity.ai/hub/legal/privacy-policy

== Changelog ==

= 1.0.0 =

* Initial release. Adds Perplexity (Sonar) text generation support to the WordPress AI Client.
