Skip to content

Commit

Permalink
Add Llama 3 8b & 70b via Groq Cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello authored and sunner committed Apr 22, 2024
1 parent ce6b675 commit a19540d
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 0 deletions.
Binary file added public/bots/llama-3-70b-groq-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/bots/llama-3-8b-groq-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/bots/groq/Llama370bGroqAPIBot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import GroqAPIBot from "./GroqAPIBot";

export default class Llama370bGroqAPIBot extends GroqAPIBot {
static _className = "Llama370bGroqAPIBot";
static _logoFilename = "llama-3-70b-groq-logo.png";
static _model = "llama3-70b-8192";
constructor() {
super();
}
}
10 changes: 10 additions & 0 deletions src/bots/groq/Llama38bGroqAPIBot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import GroqAPIBot from "./GroqAPIBot";

export default class Llama38bGroqAPIBot extends GroqAPIBot {
static _className = "Llama38bGroqAPIBot";
static _logoFilename = "llama-3-8b-groq-logo.png";
static _model = "llama3-8b-8192";
constructor() {
super();
}
}
6 changes: 6 additions & 0 deletions src/bots/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import DevBot from "@/bots/DevBot";
import GradioAppBot from "@/bots/huggingface/GradioAppBot";
import Gemma7bGroqAPIBot from "@/bots/groq/Gemma7bGroqAPIBot";
import Llama270bGroqAPIBot from "@/bots/groq/Llama270bGroqAPIBot";
import Llama38bGroqAPIBot from "@/bots/groq/Llama38bGroqAPIBot";
import Llama370bGroqAPIBot from "@/bots/groq/Llama370bGroqAPIBot";
import Mixtral8x7bGroqAPIBot from "@/bots/groq/Mixtral8x7bGroqAPIBot";
import HuggingChatBot from "@/bots/huggingface/HuggingChatBot";
import QianWenBot from "./QianWenBot";
Expand Down Expand Up @@ -128,6 +130,8 @@ const all = [
GradioAppBot.getInstance(),
Gemma7bGroqAPIBot.getInstance(),
Llama270bGroqAPIBot.getInstance(),
Llama38bGroqAPIBot.getInstance(),
Llama370bGroqAPIBot.getInstance(),
Mixtral8x7bGroqAPIBot.getInstance(),
KimiBot.getInstance(),
Llama27bBot.getInstance(),
Expand Down Expand Up @@ -288,6 +292,8 @@ export const botTags = {
bots.getBotByClassName("ClaudeAPISonnetBot"),
bots.getBotByClassName("Gemma7bGroqAPIBot"),
bots.getBotByClassName("Llama270bGroqAPIBot"),
bots.getBotByClassName("Llama38bGroqAPIBot"),
bots.getBotByClassName("Llama370bGroqAPIBot"),
bots.getBotByClassName("Mixtral8x7bGroqAPIBot"),
],
madeInChina: [
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@
"groqApi": {
"name": "Groq API",
"llama2-70b-4096": "LLaMA2 70b",
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
}
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@
"groqApi": {
"name": "Groq API",
"llama2-70b-4096": "LLaMA2 70b",
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
},
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@
"groqApi": {
"name": "Groq API",
"llama2-70b-4096": "LLaMA2 70b",
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
},
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@
"groqApi": {
"name": "Groq API",
"llama2-70b-4096": "LLaMA2 70b",
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
}
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
"groqApi": {
"name": "Groq API",
"llama2-70b-4096": "LLaMA2 70b",
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
}
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@
"groqApi": {
"name": "Groq API",
"llama2-70b-4096": "LLaMA2 70b",
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
},
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@
"groqApi": {
"name": "Groq API",
"llama2-70b-4096": "LLaMA2 70b",
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
},
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@
"groqApi": {
"name": "Groq API",
"llama2-70b-4096": "LLaMA2 70b",
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
}
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@
"groqApi": {
"name": "Groq API",
"llama2-70b-4096": "LLaMA2 70b",
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
},
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@
"groqApi": {
"name": "Groq API",
"llama2-70b-4096": "LLaMA2 70b",
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
},
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/zhtw.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@
"groqApi": {
"name": "Groq API",
"llama2-70b-4096": "LLaMA2 70b",
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
},
Expand Down

0 comments on commit a19540d

Please sign in to comment.