From 296f04156455346a35cec4440239325523265d33 Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Sun, 28 Jul 2024 16:29:18 -0700 Subject: [PATCH] path perplexity model ids closes #1990 --- server/utils/AiProviders/perplexity/models.js | 12 ++++++------ .../AiProviders/perplexity/scripts/chat_models.txt | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/utils/AiProviders/perplexity/models.js b/server/utils/AiProviders/perplexity/models.js index e35068d4..124e3ea1 100644 --- a/server/utils/AiProviders/perplexity/models.js +++ b/server/utils/AiProviders/perplexity/models.js @@ -1,7 +1,7 @@ const MODELS = { - "llama-3-sonar-small-32k-online\\*": { - id: "llama-3-sonar-small-32k-online\\*", - name: "llama-3-sonar-small-32k-online\\*", + "llama-3-sonar-small-32k-online": { + id: "llama-3-sonar-small-32k-online", + name: "llama-3-sonar-small-32k-online", maxLength: 28000, }, "llama-3-sonar-small-32k-chat": { @@ -9,9 +9,9 @@ const MODELS = { name: "llama-3-sonar-small-32k-chat", maxLength: 32768, }, - "llama-3-sonar-large-32k-online\\*": { - id: "llama-3-sonar-large-32k-online\\*", - name: "llama-3-sonar-large-32k-online\\*", + "llama-3-sonar-large-32k-online": { + id: "llama-3-sonar-large-32k-online", + name: "llama-3-sonar-large-32k-online", maxLength: 28000, }, "llama-3-sonar-large-32k-chat": { diff --git a/server/utils/AiProviders/perplexity/scripts/chat_models.txt b/server/utils/AiProviders/perplexity/scripts/chat_models.txt index e02af255..2d2d34f7 100644 --- a/server/utils/AiProviders/perplexity/scripts/chat_models.txt +++ b/server/utils/AiProviders/perplexity/scripts/chat_models.txt @@ -1,8 +1,8 @@ | Model | Parameter Count | Context Length | Model Type | | :--------------------------------- | :-------------- | :------------- | :-------------- | -| `llama-3-sonar-small-32k-online`\* | 8B | 28,000 | Chat Completion | +| `llama-3-sonar-small-32k-online` | 8B | 28,000 | Chat Completion | | `llama-3-sonar-small-32k-chat` | 8B | 32,768 | Chat Completion | -| `llama-3-sonar-large-32k-online`\* | 70B | 28,000 | Chat Completion | +| `llama-3-sonar-large-32k-online` | 70B | 28,000 | Chat Completion | | `llama-3-sonar-large-32k-chat` | 70B | 32,768 | Chat Completion | | `llama-3-8b-instruct` | 8B | 8,192 | Chat Completion | | `llama-3-70b-instruct` | 70B | 8,192 | Chat Completion |