summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-09-11 15:17:59 +0200
committerkqlio67 <kqlio67@users.noreply.github.com>2024-09-11 15:17:59 +0200
commit890e7891c1e2cc7460626b115b1e3dad8bede316 (patch)
tree2d08735dbbdbee7549d218f5dc03f3e27e13642d /g4f/Provider
parentUpdated g4f/Provider/selenium/__init__.py (diff)
downloadgpt4free-890e7891c1e2cc7460626b115b1e3dad8bede316.tar
gpt4free-890e7891c1e2cc7460626b115b1e3dad8bede316.tar.gz
gpt4free-890e7891c1e2cc7460626b115b1e3dad8bede316.tar.bz2
gpt4free-890e7891c1e2cc7460626b115b1e3dad8bede316.tar.lz
gpt4free-890e7891c1e2cc7460626b115b1e3dad8bede316.tar.xz
gpt4free-890e7891c1e2cc7460626b115b1e3dad8bede316.tar.zst
gpt4free-890e7891c1e2cc7460626b115b1e3dad8bede316.zip
Diffstat (limited to 'g4f/Provider')
-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(