Skip to content

Commit

Permalink
Add Gemma2 9b bot via Groq Cloud API (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello authored Sep 27, 2024
1 parent 74beb22 commit c49b5e0
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 11 deletions.
Binary file added public/bots/gemma2-9b-it-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/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 = "gemma2-9b-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 @@ -30,6 +30,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 @@ -148,6 +149,7 @@ const all = [
ChatGPT432kPoeBot.getInstance(),
GradioAppBot.getInstance(),
Gemma7bGroqAPIBot.getInstance(),
Gemma29bGroqAPIBot.getInstance(),
Llama38bGroqAPIBot.getInstance(),
Llama370bGroqAPIBot.getInstance(),
Mixtral8x7bGroqAPIBot.getInstance(),
Expand Down Expand Up @@ -319,6 +321,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 @@ -307,7 +307,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 @@ -310,7 +310,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 @@ -307,7 +307,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 @@ -307,7 +307,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 @@ -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": "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 @@ -307,7 +307,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 @@ -310,7 +310,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 @@ -307,7 +307,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 @@ -286,7 +286,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 @@ -307,7 +307,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 @@ -307,7 +307,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 c49b5e0

Please sign in to comment.