Skip to main content

Module perplexity

Module perplexity 

Source
Expand description

Perplexity API client and Rig integration

§Example

use rig_core::{client::CompletionClient, providers::perplexity};

let client = perplexity::Client::new("YOUR_API_KEY")?;

let sonar = client.completion_model(perplexity::SONAR);

Structs§

PerplexityBuilder
PerplexityExt

Constants§

SONAR
SONAR_PRO

Type Aliases§

Client
ClientBuilder
CompletionModel
Perplexity completion model, driven by the shared OpenAI Chat Completions path.
CompletionResponse
Raw completion payload, shared with the OpenAI Chat Completions path.