Skip to content

Commit

Permalink
Add Gemma2 9b bot via Groq Cloud API
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Jul 8, 2024
1 parent f934d5c commit a687804
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 11 deletions.
10 changes: 10 additions & 0 deletions src/bots/groq/Gemma29bGroqAPIBot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import GroqAPIBot from "./GroqAPIBot";

export default class Gemma29bGroqAPIBot extends GroqAPIBot {
static _className = "Gemma29bGroqAPIBot";
static _logoFilename = "gemma-7b-it-groq-logo.png";
static _model = "gemma2-9b-it";
constructor() {
super();
}
}
3 changes: 3 additions & 0 deletions src/bots/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import ClaudeBot from "@/bots/lmsys/ClaudeBot";
import DevBot from "@/bots/DevBot";
import GradioAppBot from "@/bots/huggingface/GradioAppBot";
import Gemma7bGroqAPIBot from "@/bots/groq/Gemma7bGroqAPIBot";
import Gemma29bGroqAPIBot from "@bots/groq/Gemma29bGroqAPIBot";
import Llama38bGroqAPIBot from "@/bots/groq/Llama38bGroqAPIBot";
import Llama370bGroqAPIBot from "@/bots/groq/Llama370bGroqAPIBot";
import Mixtral8x7bGroqAPIBot from "@/bots/groq/Mixtral8x7bGroqAPIBot";
Expand Down Expand Up @@ -146,6 +147,7 @@ const all = [
ChatGPT432kPoeBot.getInstance(),
GradioAppBot.getInstance(),
Gemma7bGroqAPIBot.getInstance(),
Gemma29bGroqAPIBot.getInstance(),
Llama38bGroqAPIBot.getInstance(),
Llama370bGroqAPIBot.getInstance(),
Mixtral8x7bGroqAPIBot.getInstance(),
Expand Down Expand Up @@ -316,6 +318,7 @@ export const botTags = {
bots.getBotByClassName("CohereAPICommandRPlusBot"),
bots.getBotByClassName("CohereAPIAya23Bot"),
bots.getBotByClassName("Gemma7bGroqAPIBot"),
bots.getBotByClassName("Gemma29bGroqAPIBot"),
bots.getBotByClassName("Llama38bGroqAPIBot"),
bots.getBotByClassName("Llama370bGroqAPIBot"),
bots.getBotByClassName("Mixtral8x7bGroqAPIBot"),
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
"gemma-7b-it": "Gemma 7b",
"gemma2-9b-it": "Gemma2 9b"
},
"updates": {
"updateAvailable": "Update verfügbar!",
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
"gemma-7b-it": "Gemma 7b",
"gemma2-9b-it": "Gemma2 9b"
},
"updates": {
"updateAvailable": "Update Available!",
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
"gemma-7b-it": "Gemma 7b",
"gemma2-9b-it": "Gemma2 9b"
},
"updates": {
"updateAvailable": "¡Hay una actualización disponible!",
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
"gemma-7b-it": "Gemma 7b",
"gemma2-9b-it": "Gemma2 9b"
},
"updates": {
"updateAvailable": "Mise à jour disponible !",
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
"gemma-7b-it": "Gemma 7b",
"gemma2-9b-it": "Gemma2 9b"
},
"updates": {
"updateAvailable": "Aggiornamento disponibile!",
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
"gemma-7b-it": "Gemma 7b",
"gemma2-9b-it": "Gemma2 9b"
},
"updates": {
"updateAvailable": "新しいバージョンが利用可能です。",
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
"gemma-7b-it": "Gemma 7b",
"gemma2-9b-it": "Gemma2 9b"
},
"updates": {
"updateAvailable": "업데이트 가능!",
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
"gemma-7b-it": "Gemma 7b",
"gemma2-9b-it": "Gemma2 9b"
},
"updates": {
"updateAvailable": "Доступно обновление!",
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
"gemma-7b-it": "Gemma 7b",
"gemma2-9b-it": "Gemma2 9b"
},
"updates": {
"updateAvailable": "Cập nhập mới đã có!",
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
"gemma-7b-it": "Gemma 7b",
"gemma2-9b-it": "Gemma2 9b"
},
"updates": {
"updateAvailable": "有更新!",
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/locales/zhtw.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@
"llama3-8b-8192": "Llama 3 8b",
"llama3-70b-8192": "Llama 3 70b",
"mixtral-8x7b-32768": "Mixtral 8x7b",
"gemma-7b-it": "Gemma 7b"
"gemma-7b-it": "Gemma 7b",
"gemma2-9b-it": "Gemma2 9b"
},
"updates": {
"updateAvailable": "有新版可使用!",
Expand Down

0 comments on commit a687804

Please sign in to comment.