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
CompletionModel
CompletionResponse
Delta
Message
Usage

Constants§

LLAMA_3_1_8B_INSTRUCT
llama-3.1-8b-instruct completion model
LLAMA_3_1_70B_INSTRUCT
llama-3.1-70b-instruct completion model
LLAMA_3_1_SONAR_HUGE_ONLINE
llama-3.1-sonar-huge-128k-online completion model
LLAMA_3_1_SONAR_LARGE_CHAT
llama-3.1-sonar-large-128k-chat completion model
LLAMA_3_1_SONAR_LARGE_ONLINE
llama-3.1-sonar-large-128k-online completion model
LLAMA_3_1_SONAR_SMALL_CHAT
llama-3.1-sonar-small-128k-chat completion model
LLAMA_3_1_SONAR_SMALL_ONLINE
llama-3.1-sonar-small-128k-online completion model