Perplexity
Perplexity: Llama3 Sonar 70B Online
perplexity/llama-3-sonar-large-32k-online
Llama3 Sonar is Perplexity's latest model family. It surpasses their earlier Sonar models in cost-efficiency, speed, and performance.
This is the online version of the offline chat model. It is focused on delivering helpful, up-to-date, and factual responses. #online
Context Window
28,000
Using Perplexity: Llama3 Sonar 70B Online with Python API
Using Perplexity: Llama3 Sonar 70B Online with OpenAI compatible API
import openai
client = openai.Client(
api_key= '{your_api_key}',
base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="perplexity/llama-3-sonar-large-32k-online",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)