Skip to content

Commit

Permalink
Add OpenAI's latest GPT-4o model in API
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello authored and sunner committed May 15, 2024
1 parent 9b73005 commit e73561a
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 0 deletions.
Binary file added public/bots/openai-4o-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 @@ -16,6 +16,7 @@ import BardBot from "@/bots/google/BardBot";
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 MistralBot from "./MistralBot";
import MOSSBot from "@/bots/MOSSBot";
import WenxinQianfanBot from "@/bots/baidu/WenxinQianfanBot";
Expand Down Expand Up @@ -136,6 +137,7 @@ const all = [
ChatGPT4PoeBot.getInstance(),
OpenAIAPI4Bot.getInstance(),
OpenAIAPI4128KBot.getInstance(),
OpenAIAPI4oBot.getInstance(),
ChatGPT432kPoeBot.getInstance(),
GradioAppBot.getInstance(),
Gemma7bGroqAPIBot.getInstance(),
Expand Down Expand Up @@ -292,6 +294,7 @@ export const botTags = {
bots.getBotByClassName("OpenAIAPI3516KBot"),
bots.getBotByClassName("OpenAIAPI4Bot"),
bots.getBotByClassName("OpenAIAPI4128KBot"),
bots.getBotByClassName("OpenAIAPI4oBot"),
bots.getBotByClassName("WenxinQianfanBot"),
bots.getBotByClassName("WenxinQianfanTurboBot"),
bots.getBotByClassName("WenxinQianfan4Bot"),
Expand Down
12 changes: 12 additions & 0 deletions src/bots/openai/OpenAIAPI4oBot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import OpenAIAPIBot from "./OpenAIAPIBot";

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

constructor() {
super();
}
}
1 change: 1 addition & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@
"gpt-35-turbo-16k": "gpt-3.5-turbo-16k",
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"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 @@ -162,6 +162,7 @@
"gpt-35-turbo-16k": "GPT-3.5-Turbo-16K",
"gpt-4": "GPT-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"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 determinista",
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 @@ -142,6 +142,7 @@
"gpt-35-turbo-16k": "gpt-3.5-turbo-16k",
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"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 @@ -210,6 +210,7 @@
"gpt-35-turbo-16k": "gpt-3.5-터보-16k",
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"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 @@ -206,6 +206,7 @@
"gpt-35-turbo-16k": "gpt-3.5-turbo-16k",
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"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 @@ -234,6 +234,7 @@
"gpt-35-turbo-16k": "gpt-3.5-turbo-16k",
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"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 @@ -234,6 +234,7 @@
"gpt-35-turbo-16k": "gpt-3.5-turbo-16k",
"gpt-4": "gpt-4",
"gpt-4-turbo": "gpt-4-turbo",
"gpt-4o": "gpt-4o",
"temperature": "Temperature",
"temperaturePrompt": "Temperature 越高,生成的文字越有創造性,但也越可能無法理解",
"temperature0": "更具確定性",
Expand Down

0 comments on commit e73561a

Please sign in to comment.