summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/PerplexityLabs.py
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2024-09-16 00:37:30 +0200
committerGitHub <noreply@github.com>2024-09-16 00:37:30 +0200
commitcc80f2d3159ca0b6f6bfa2c36c4be87bc96209b2 (patch)
tree25ef52b8c5496ca22ce8eaa82bc885313962ba29 /g4f/Provider/PerplexityLabs.py
parentMerge pull request #2207 from kqlio67/main (diff)
parentrefactor(ReplicateHome): update model handling and API interaction (diff)
downloadgpt4free-cc80f2d3159ca0b6f6bfa2c36c4be87bc96209b2.tar
gpt4free-cc80f2d3159ca0b6f6bfa2c36c4be87bc96209b2.tar.gz
gpt4free-cc80f2d3159ca0b6f6bfa2c36c4be87bc96209b2.tar.bz2
gpt4free-cc80f2d3159ca0b6f6bfa2c36c4be87bc96209b2.tar.lz
gpt4free-cc80f2d3159ca0b6f6bfa2c36c4be87bc96209b2.tar.xz
gpt4free-cc80f2d3159ca0b6f6bfa2c36c4be87bc96209b2.tar.zst
gpt4free-cc80f2d3159ca0b6f6bfa2c36c4be87bc96209b2.zip
Diffstat (limited to 'g4f/Provider/PerplexityLabs.py')
-rw-r--r--g4f/Provider/PerplexityLabs.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/g4f/Provider/PerplexityLabs.py b/g4f/Provider/PerplexityLabs.py
index 3656a39b..ecb51f9b 100644
--- a/g4f/Provider/PerplexityLabs.py
+++ b/g4f/Provider/PerplexityLabs.py
@@ -13,7 +13,7 @@ WS_URL = "wss://www.perplexity.ai/socket.io/"
class PerplexityLabs(AsyncGeneratorProvider, ProviderModelMixin):
url = "https://labs.perplexity.ai"
working = True
- default_model = "llama-3.1-8b-instruct"
+ default_model = "llama-3.1-70b-instruct"
models = [
"llama-3.1-sonar-large-128k-online",
"llama-3.1-sonar-small-128k-online",
@@ -22,6 +22,15 @@ class PerplexityLabs(AsyncGeneratorProvider, ProviderModelMixin):
"llama-3.1-8b-instruct",
"llama-3.1-70b-instruct",
]
+
+ model_aliases = {
+ "llama-3.1-8b": "llama-3.1-sonar-large-128k-online",
+ "llama-3.1-8b": "sonar-small-128k-online",
+ "llama-3.1-8b": "llama-3.1-sonar-large-128k-chat",
+ "llama-3.1-8b": "llama-3.1-sonar-small-128k-chat",
+ "llama-3.1-8b": "llama-3.1-8b-instruct",
+ "llama-3.1-70b": "llama-3.1-70b-instruct",
+ }
@classmethod
async def create_async_generator(