Skip to content

Commit

Permalink
update perplexity models
Browse files Browse the repository at this point in the history
resolves #1188
  • Loading branch information
timothycarambat committed Apr 25, 2024
1 parent ff5d7d8 commit dfaaf16
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
15 changes: 15 additions & 0 deletions server/utils/AiProviders/perplexity/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ const MODELS = {
name: "sonar-medium-online",
maxLength: 12000,
},
"llama-3-8b-instruct": {
id: "llama-3-8b-instruct",
name: "llama-3-8b-instruct",
maxLength: 8192,
},
"llama-3-70b-instruct": {
id: "llama-3-70b-instruct",
name: "llama-3-70b-instruct",
maxLength: 8192,
},
"codellama-70b-instruct": {
id: "codellama-70b-instruct",
name: "codellama-70b-instruct",
Expand All @@ -34,6 +44,11 @@ const MODELS = {
name: "mixtral-8x7b-instruct",
maxLength: 16384,
},
"mixtral-8x22b-instruct": {
id: "mixtral-8x22b-instruct",
name: "mixtral-8x22b-instruct",
maxLength: 16384,
},
};

module.exports.MODELS = MODELS;
5 changes: 4 additions & 1 deletion server/utils/AiProviders/perplexity/scripts/chat_models.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
| `sonar-small-online` | 7B | 12000 | Chat Completion |
| `sonar-medium-chat` | 8x7B | 16384 | Chat Completion |
| `sonar-medium-online` | 8x7B | 12000 | Chat Completion |
| `llama-3-8b-instruct` | 8B | 8192 | Chat Completion |
| `llama-3-70b-instruct` | 70B | 8192 | Chat Completion |
| `codellama-70b-instruct` | 70B | 16384 | Chat Completion |
| `mistral-7b-instruct` [1] | 7B | 16384 | Chat Completion |
| `mixtral-8x7b-instruct` | 8x7B | 16384 | Chat Completion |
| `mixtral-8x7b-instruct` | 8x7B | 16384 | Chat Completion |
| `mixtral-8x22b-instruct` | 8x22B | 16384 | Chat Completion |
2 changes: 1 addition & 1 deletion server/utils/AiProviders/perplexity/scripts/parse.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// copy outputs into the export in ../models.js

// Update the date below if you run this again because Perplexity added new models.
// Last Collected: Apr 14, 2024
// Last Collected: Apr 25, 2024

import fs from "fs";

Expand Down

0 comments on commit dfaaf16

Please sign in to comment.