From cb7cb2d9764536b2e9f4d47cb56442160a68058b Mon Sep 17 00:00:00 2001
From: timothycarambat <rambat1010@gmail.com>
Date: Mon, 19 Aug 2024 12:26:22 -0700
Subject: [PATCH] Add 405B to perplexity

---
 server/utils/AiProviders/perplexity/models.js               | 5 +++++
 server/utils/AiProviders/perplexity/scripts/chat_models.txt | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/server/utils/AiProviders/perplexity/models.js b/server/utils/AiProviders/perplexity/models.js
index f20ce70ca..64bd2cffa 100644
--- a/server/utils/AiProviders/perplexity/models.js
+++ b/server/utils/AiProviders/perplexity/models.js
@@ -64,6 +64,11 @@ const MODELS = {
     name: "llama-3.1-70b-instruct",
     maxLength: 131072,
   },
+  "llama-3.1-sonar-huge-128k-chat": {
+    id: "llama-3.1-sonar-huge-128k-chat",
+    name: "llama-3.1-sonar-huge-128k-chat",
+    maxLength: 127072,
+  },
 };
 
 module.exports.MODELS = MODELS;
diff --git a/server/utils/AiProviders/perplexity/scripts/chat_models.txt b/server/utils/AiProviders/perplexity/scripts/chat_models.txt
index 8e98f0c20..ec9081efe 100644
--- a/server/utils/AiProviders/perplexity/scripts/chat_models.txt
+++ b/server/utils/AiProviders/perplexity/scripts/chat_models.txt
@@ -12,4 +12,5 @@
 | `llama-3-70b-instruct`  | 70B             | 8,192          | Chat Completion |
 | `mixtral-8x7b-instruct` | 8x7B            | 16,384         | Chat Completion |
 | `llama-3.1-8b-instruct`   | 8B              | 131,072        | Chat Completion |
-| `llama-3.1-70b-instruct`  | 70B             | 131,072        | Chat Completion |
\ No newline at end of file
+| `llama-3.1-70b-instruct`  | 70B             | 131,072        | Chat Completion |
+| `llama-3.1-sonar-huge-128k-chat`   | 405B             | 127,072        | Chat Completion |
\ No newline at end of file
-- 
GitLab