Skip to content

Commit

Permalink
feat: add ChatGLM3-6b (#637)
Browse files Browse the repository at this point in the history
* 支持ChatCLM3-6b

* add chatglm3-6b to en

* update chatglm logo

* update chatglm logo js

---------

Co-authored-by: yaoyilin <[email protected]>
  • Loading branch information
yl10139wfm and yaoyilin authored Nov 27, 2023
1 parent 72aad41 commit b16f8e2
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 1 deletion.
Binary file removed public/bots/chatglm-logo.png
Binary file not shown.
Binary file added public/bots/chatglm2-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/bots/chatglm3-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/bots/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import Llama27bBot from "./lmsys/Llama27bBot";
import Llama270bBot from "./lmsys/Llama270bBot";
import Falcon180bBot from "./huggingface/Falcon180bBot";
import ChatGLM6bBot from "./lmsys/ChatGLM6bBot";
import ChatGLM36bBot from "./lmsys/ChatGLM36bBot";
import CodeLlamaBot from "./lmsys/CodeLlamaBot";
import Vicuna7bBot from "./lmsys/Vicuna7bBot";
import Vicuna13bBot from "./lmsys/Vicuna13bBot";
Expand All @@ -65,6 +66,7 @@ const all = [
CharacterAIBot.getInstance(),
ChatGLMBot.getInstance(),
ChatGLM6bBot.getInstance(),
ChatGLM36bBot.getInstance(),
ClaudeInstantPoeBot.getInstance(),
ClaudeInstant100kPoeBot.getInstance(),
ClaudeBot.getInstance(),
Expand Down Expand Up @@ -136,6 +138,7 @@ export const botTags = {
bots.getBotByClassName("BingChatPreciseBot"),
bots.getBotByClassName("ChatGLMBot"),
bots.getBotByClassName("ChatGLM6bBot"),
bots.getBotByClassName("ChatGLM36bBot"),
bots.getBotByClassName("ChatGPT35Bot"),
bots.getBotByClassName("ChatGPT35PoeBot"),
bots.getBotByClassName("ClaudeBot"),
Expand Down Expand Up @@ -193,6 +196,7 @@ export const botTags = {
bots.getBotByClassName("Vicuna13bBot"),
bots.getBotByClassName("Falcon180bBot"),
bots.getBotByClassName("ChatGLM6bBot"),
bots.getBotByClassName("ChatGLM36bBot"),
bots.getBotByClassName("CodeLlamaBot"),
bots.getBotByClassName("CodeLlamaHCBot"),
bots.getBotByClassName("Wizardlm13bBot"),
Expand Down Expand Up @@ -220,6 +224,7 @@ export const botTags = {
bots.getBotByClassName("MOSSBot"),
bots.getBotByClassName("ChatGLMBot"),
bots.getBotByClassName("ChatGLM6bBot"),
bots.getBotByClassName("ChatGLM36bBot"),
],
};
export default bots;
12 changes: 12 additions & 0 deletions src/bots/lmsys/ChatGLM36bBot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import LMSYSBot from "./LMSYSBot";

export default class ChatGLM36bBot extends LMSYSBot {
static _brandId = "lmsys"; // Brand id of the bot, should be unique. Used in i18n.
static _className = "ChatGLM36bBot"; // Class name of the bot
static _logoFilename = "chatglm3-logo.png"; // Place it in public/bots/
static _model = "chatglm3-6b";

constructor() {
super();
}
}
2 changes: 1 addition & 1 deletion src/bots/lmsys/ChatGLM6bBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import LMSYSBot from "./LMSYSBot";
export default class ChatGLM6bBot extends LMSYSBot {
static _brandId = "lmsys"; // Brand id of the bot, should be unique. Used in i18n.
static _className = "ChatGLM6bBot"; // Class name of the bot
static _logoFilename = "chatglm-logo.svg"; // Place it in public/bots/
static _logoFilename = "chatglm2-logo.png"; // Place it in public/bots/
static _model = "chatglm2-6b";

constructor() {
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 @@ -164,6 +164,7 @@
"vicuna-33b": "vicuna-33b",
"chatglm-6b": "chatglm-6b",
"chatglm2-6b": "chatglm2-6b",
"chatglm3-6b": "chatglm3-6b",
"alpaca-13b": "alpaca-13b",
"claude-1": "claude-1",
"wizardlm-13b": "WizardLM-13B",
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 @@ -164,6 +164,7 @@
"vicuna-33b": "vicuna-33b",
"chatglm-6b": "chatglm-6b",
"chatglm2-6b": "chatglm2-6b",
"chatglm3-6b": "chatglm3-6b",
"alpaca-13b": "alpaca-13b",
"claude-1": "claude-1",
"wizardlm-13b": "WizardLM-13B",
Expand Down

1 comment on commit b16f8e2

@vercel
Copy link

@vercel vercel bot commented on b16f8e2 Nov 27, 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-git-main-sunner.vercel.app
chatall-llm.vercel.app
chatall-sunner.vercel.app

Please sign in to comment.