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§
Constants§
- LLAMA_
3_ 1_ 8B_ INSTRUCT llama-3.1-8b-instructcompletion model- LLAMA_
3_ 1_ 70B_ INSTRUCT llama-3.1-70b-instructcompletion model- LLAMA_
3_ 1_ SONAR_ HUGE_ ONLINE llama-3.1-sonar-huge-128k-onlinecompletion model- LLAMA_
3_ 1_ SONAR_ LARGE_ CHAT llama-3.1-sonar-large-128k-chatcompletion model- LLAMA_
3_ 1_ SONAR_ LARGE_ ONLINE llama-3.1-sonar-large-128k-onlinecompletion model- LLAMA_
3_ 1_ SONAR_ SMALL_ CHAT llama-3.1-sonar-small-128k-chatcompletion model- LLAMA_
3_ 1_ SONAR_ SMALL_ ONLINE llama-3.1-sonar-small-128k-onlinecompletion model