Skip to content

Commit

Permalink
Add the latest GPT-4 Turbo model in API
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello authored and sunner committed Dec 3, 2023
1 parent 9b41544 commit a24d560
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bots/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import SparkBot from "@/bots/SparkBot";
import BardBot from "@/bots/BardBot";
import OpenAIAPI35Bot from "@/bots/openai/OpenAIAPI35Bot";
import OpenAIAPI4Bot from "@/bots/openai/OpenAIAPI4Bot";
import OpenAIAPI4128KBot from "@/bots/openai/OpenAIAPI4128KBot";
import MOSSBot from "@/bots/MOSSBot";
import WenxinQianfanBot from "@/bots/baidu/WenxinQianfanBot";
import VicunaBot from "@/bots/lmsys/VicunaBot";
Expand Down Expand Up @@ -89,6 +90,7 @@ const all = [
ChatGPT4PoeBot.getInstance(),
ChatGPTBrowsingBot.getInstance(),
OpenAIAPI4Bot.getInstance(),
OpenAIAPI4128KBot.getInstance(),
ChatGPT432kPoeBot.getInstance(),
GradioAppBot.getInstance(),
Llama27bBot.getInstance(),
Expand Down Expand Up @@ -209,6 +211,7 @@ export const botTags = {
bots.getBotByClassName("OpenAIAPI35Bot"),
bots.getBotByClassName("OpenAIAPI3516KBot"),
bots.getBotByClassName("OpenAIAPI4Bot"),
bots.getBotByClassName("OpenAIAPI4128KBot"),
bots.getBotByClassName("WenxinQianfanBot"),
bots.getBotByClassName("WenxinQianfanTurboBot"),
bots.getBotByClassName("WenxinQianfan4Bot"),
Expand Down
12 changes: 12 additions & 0 deletions src/bots/openai/OpenAIAPI4128KBot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import OpenAIAPIBot from "./OpenAIAPIBot";

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

constructor() {
super();
}
}

1 comment on commit a24d560

@vercel
Copy link

@vercel vercel bot commented on a24d560 Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

chatall – ./

chatall-llm.vercel.app
chatall-git-main-sunner.vercel.app
chatall-sunner.vercel.app

Please sign in to comment.