Module perplexity

Module perplexity 

Source
Expand description

Perplexity API client and Rig integration

§Example

use rig::providers::perplexity;

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

let llama_3_1_sonar_small_online = client.completion_model(perplexity::LLAMA_3_1_SONAR_SMALL_ONLINE);

Structs§

Choice
Client
ClientBuilder
CompletionModel
CompletionResponse
Delta
Message
Usage

Enums§

Role

Constants§

SONAR
sonar completion model
SONAR_PRO
sonar-pro completion model