Perplexity
Perplexity

Perplexity: Llama3 Sonar 8B Online

perplexity/llama-3-sonar-small-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

0

Using Perplexity: Llama3 Sonar 8B Online with Python API

Using Perplexity: Llama3 Sonar 8B 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-small-32k-online",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)