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§
Constants§
Type Aliases§
- Client
- Client
Builder - Completion
Model - Perplexity completion model, driven by the shared OpenAI Chat Completions path.
- Completion
Response - Raw completion payload, shared with the OpenAI Chat Completions path.