Skip to content

Commit

Permalink
Add gpt-4o-mini bot via OpenAI API (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesaryuan committed Sep 26, 2024
1 parent 404a8f7 commit 6a52398
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 0 deletions.
Binary file added public/bots/openai-4o-mini-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/bots/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import OpenAIAPI35Bot from "@/bots/openai/OpenAIAPI35Bot";
import OpenAIAPI4Bot from "@/bots/openai/OpenAIAPI4Bot";
import OpenAIAPI4128KBot from "@/bots/openai/OpenAIAPI4128KBot";
import OpenAIAPI4oBot from "@/bots/openai/OpenAIAPI4oBot";
import OpenAIAPI4oMiniBot from "./openai/OpenAIAPI4oMiniBot";
import MistralBot from "./MistralBot";
import MOSSBot from "@/bots/MOSSBot";
import WenxinQianfanBot from "@/bots/baidu/WenxinQianfanBot";
Expand Down Expand Up @@ -143,6 +144,7 @@ const all = [
OpenAIAPI4Bot.getInstance(),
OpenAIAPI4128KBot.getInstance(),
OpenAIAPI4oBot.getInstance(),
OpenAIAPI4oMiniBot.getInstance(),
ChatGPT432kPoeBot.getInstance(),
GradioAppBot.getInstance(),
Gemma7bGroqAPIBot.getInstance(),
Expand Down Expand Up @@ -300,6 +302,7 @@ export const botTags = {
bots.getBotByClassName("OpenAIAPI4Bot"),
bots.getBotByClassName("OpenAIAPI4128KBot"),
bots.getBotByClassName("OpenAIAPI4oBot"),
bots.getBotByClassName("OpenAIAPI4oMiniBot"),
bots.getBotByClassName("WenxinQianfanBot"),
bots.getBotByClassName("WenxinQianfanTurboBot"),
bots.getBotByClassName("WenxinQianfan4Bot"),
Expand Down
12 changes: 12 additions & 0 deletions src/bots/openai/OpenAIAPI4oMiniBot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import OpenAIAPIBot from "./OpenAIAPIBot";

export default class OpenAIAPI4oMiniBot extends OpenAIAPIBot {
static _className = "OpenAIAPI4oMiniBot"; // Class name of the bot
static _logoFilename = "openai-4o-mini-logo.png"; // Place it in public/bots/
static _isDarkLogo = true; // The main color of logo is dark
static _model = "gpt-4o-mini";

constructor() {
super();
}
}
1 change: 1 addition & 0 deletions src/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"gpt-4o-mini": "gpt-4o-mini",
"temperature": "Temperatur",
"temperaturePrompt": "Je höher die Temperatur, desto kreativer der Text, aber desto wahrscheinlicher ist es, dass er inkohärent ist",
"temperature0": "Stärker deterministisch",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"gpt-4o-mini": "gpt-4o-mini",
"temperature": "Temperature",
"temperaturePrompt": "The higher the temperature, the more creative the text, but the more likely it is to be incoherent",
"temperature0": "More deterministic",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"gpt-4o-mini": "gpt-4o-mini",
"temperature": "Temperatura",
"temperaturePrompt": "Cuanto mayor sea la temperatura, más creativo será el texto, pero más probable es que sea incoherente.",
"temperature0": "Más determinístico",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"gpt-4o-mini": "gpt-4o-mini",
"temperature": "Température",
"temperaturePrompt": "Une température plus élevée favorise la créativité du texte généré, mais le risque d'incohérence augmente également.",
"temperature0": "Plus déterministe",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"gpt-4o-mini": "gpt-4o-mini",
"temperature": "Temperatura",
"temperaturePrompt": "Più alta è la temperatura, più creativo è il testo, ma maggiore è la probabilità che sia incoerente",
"temperature0": "Più deterministico",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"gpt-4o-mini": "gpt-4o-mini",
"temperature": "温度",
"temperaturePrompt": "温度が高いほど、テキストは創造的ですが、一貫性がない可能性が高いです。",
"temperature0": "より決定論的な",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"gpt-4o-mini": "gpt-4o-mini",
"temperature": "온도",
"temperaturePrompt": "온도가 높을수록 텍스트는 창의적이지만 일관성이 없을 가능성이 높습니다",
"temperature0": "더 결정론적인",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"gpt-4o-mini": "gpt-4o-mini",
"temperature": "Температура",
"temperaturePrompt": "Чем выше температура, тем креативнее текст, но тем больше вероятность того, что он будет бессвязным",
"temperature0": "Более определенный",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"gpt-4o-mini": "gpt-4o-mini",
"temperature": "Temperature",
"temperaturePrompt": "Temperature càng cao, văn bản càng sáng tạo nhưng càng có khả năng trở nên rời rạc",
"temperature0": "Cụ thể hơn",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"gpt-4o-mini": "gpt-4o-mini",
"temperature": "Temperature",
"temperaturePrompt": "Temperature 越高,生成的文本越有创造性,但也越没条理",
"temperature0": "更具确定性",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/zhtw.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"gpt-4o-mini": "gpt-4o-mini",
"temperature": "Temperature",
"temperaturePrompt": "Temperature 越高,生成的文字越有創造性,但也越可能無法理解",
"temperature0": "更具確定性",
Expand Down

0 comments on commit 6a52398

Please sign in to comment.