gpt4free/g4f/Provider/needs_auth/PerplexityApi.py

18 lines
531 B
Python
Raw Normal View History

from __future__ import annotations
2024-11-09 10:48:34 +03:00
from .OpenaiAPI import OpenaiAPI
2024-11-09 10:48:34 +03:00
class PerplexityApi(OpenaiAPI):
label = "Perplexity API"
url = "https://www.perplexity.ai"
working = True
api_base = "https://api.perplexity.ai"
default_model = "llama-3-sonar-large-32k-online"
models = [
"llama-3-sonar-small-32k-chat",
"llama-3-sonar-small-32k-online",
"llama-3-sonar-large-32k-chat",
"llama-3-sonar-large-32k-online",
"llama-3-8b-instruct",
"llama-3-70b-instruct",
]