Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into r…
Browse files Browse the repository at this point in the history
…ender
  • Loading branch information
timothycarambat committed Sep 28, 2024
2 parents 6d7f8b7 + cadc09d commit 53e0cd1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ export default function PromptInput({
}

const pasteText = e.clipboardData.getData("text/plain");
if (pasteText) setPromptInput((prev) => prev + pasteText.trim());
if (pasteText) {
const newPromptInput = promptInput + pasteText.trim();
setPromptInput(newPromptInput);
onChange({ target: { value: newPromptInput } });
}
return;
};

Expand Down
12 changes: 12 additions & 0 deletions server/utils/AiProviders/fireworksAi/models.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
const MODELS = {
"accounts/fireworks/models/llama-v3p2-3b-instruct": {
id: "accounts/fireworks/models/llama-v3p2-3b-instruct",
organization: "Meta",
name: "Llama 3.2 3B Instruct",
maxLength: 131072,
},
"accounts/fireworks/models/llama-v3p2-1b-instruct": {
id: "accounts/fireworks/models/llama-v3p2-1b-instruct",
organization: "Meta",
name: "Llama 3.2 1B Instruct",
maxLength: 131072,
},
"accounts/fireworks/models/llama-v3p1-405b-instruct": {
id: "accounts/fireworks/models/llama-v3p1-405b-instruct",
organization: "Meta",
Expand Down
2 changes: 2 additions & 0 deletions server/utils/AiProviders/fireworksAi/scripts/chat_models.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
| Organization | Model Name | Model String for API | Context length |
|--------------|------------|----------------------|----------------|
| Meta | Llama 3.2 3B Instruct | accounts/fireworks/models/llama-v3p2-3b-instruct | 131072 |
| Meta | Llama 3.2 1B Instruct | accounts/fireworks/models/llama-v3p2-1b-instruct | 131072 |
| Meta | Llama 3.1 405B Instruct | accounts/fireworks/models/llama-v3p1-405b-instruct | 131072 |
| Meta | Llama 3.1 70B Instruct | accounts/fireworks/models/llama-v3p1-70b-instruct | 131072 |
| Meta | Llama 3.1 8B Instruct | accounts/fireworks/models/llama-v3p1-8b-instruct | 131072 |
Expand Down
4 changes: 2 additions & 2 deletions server/utils/AiProviders/fireworksAi/scripts/parse.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

// Update the date below if you run this again because Fireworks AI added new models.

// Last Collected: Sep 15, 2024
// NOTE: Only managed to collect 18 out of ~100 models!
// Last Collected: Sep 27, 2024
// NOTE: Only managed to collect 20 out of ~100 models!
// https://fireworks.ai/models lists almost 100 chat language models.
// If you want to add models, please manually add them to chat_models.txt...
// ... I tried to write a script to grab them all but gave up after a few hours...
Expand Down

0 comments on commit 53e0cd1

Please sign in to comment.