Skip to main content

Perplexity LLM plugin for LiveKit Agents

Project description

Perplexity plugin for LiveKit Agents

Support for Perplexity LLMs via the OpenAI-compatible chat completions endpoint at https://api.perplexity.ai.

See https://docs.livekit.io/agents/models/llm/perplexity/ for more information.

Installation

pip install livekit-plugins-perplexity

Pre-requisites

You'll need an API key from Perplexity. It can be passed directly or set as the PERPLEXITY_API_KEY environment variable.

Usage

from livekit.plugins import perplexity

llm = perplexity.LLM(
    model="sonar-pro",
    # api_key picked up from PERPLEXITY_API_KEY if omitted
)

The plugin reuses the OpenAI plugin's chat completions transport with base_url="https://api.perplexity.ai" and forwards an X-Pplx-Integration attribution header on every outgoing request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livekit_plugins_perplexity-1.5.10.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livekit_plugins_perplexity-1.5.10-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_perplexity-1.5.10.tar.gz.

File metadata

File hashes

Hashes for livekit_plugins_perplexity-1.5.10.tar.gz
Algorithm Hash digest
SHA256 9f0d011c7e8a225b33b5f7d78a26c79cb40f68cfb7826b7864cb66f37e69a438
MD5 660552485e9b03a476859935aae23e10
BLAKE2b-256 ca629806a6d34aada61441c459fb50b1ec5156b9f5f5fb7173e44d122849ec56

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_plugins_perplexity-1.5.10.tar.gz:

Publisher: publish.yml on livekit/agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file livekit_plugins_perplexity-1.5.10-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_perplexity-1.5.10-py3-none-any.whl
Algorithm Hash digest
SHA256 571155616daebd60d219b08038b59432d873e387dc3e439c5f954a502400da39
MD5 8cdc9578ebf962d68106a392b60dfd64
BLAKE2b-256 de1825c1df495fb09595a08ebead10eaf92027a5bfa659b96d6ddca040aa706d

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_plugins_perplexity-1.5.10-py3-none-any.whl:

Publisher: publish.yml on livekit/agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page