Skip to content

Commit

Permalink
Add claude-3-opus-20240229, claude-3-sonnet-20240229 from LMSYS
Browse files Browse the repository at this point in the history
  • Loading branch information
fathmike9123 authored and sunner committed Mar 13, 2024
1 parent df97308 commit aec4abc
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 1 deletion.
Binary file added public/bots/claude-3-opus-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/claude-3-sonnet-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/bots/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ import Zephyr7bBot from "./huggingface/Zephyr7bBot";
import GeminiAdvBot from "./google/GeminiAdvBot";
import Gemma7bItBot from "./lmsys/Gemma7bItBot";
import Gemma2bItBot from "./lmsys/Gemma2bItBot";
import Claude3SonnetBot from "./lmsys/Claude3SonnetBot";
import Claude3OpusBot from "./lmsys/Claude3OpusBot";

const all = [
Qihoo360AIBrainBot.getInstance(),
Expand All @@ -79,6 +81,8 @@ const all = [
ClaudeBot.getInstance(),
ClaudeAIBot.getInstance(),
ClaudePlusPoeBot.getInstance(),
Claude3OpusBot.getInstance(),
Claude3SonnetBot.getInstance(),
CodeLlama34bPoeBot.getInstance(),
CodeLlamaHCBot.getInstance(),
CodeLlamaBot.getInstance(),
Expand Down Expand Up @@ -202,6 +206,8 @@ export const botTags = {
bots.getBotByClassName("Zephyr7bBot"),
bots.getBotByClassName("Gemma2bItBot"),
bots.getBotByClassName("Gemma7bItBot"),
bots.getBotByClassName("Claude3SonnetBot"),
bots.getBotByClassName("Claude3OpusBot"),
],
paid: [
bots.getBotByClassName("ChatGPT4Bot"),
Expand Down Expand Up @@ -238,6 +244,8 @@ export const botTags = {
bots.getBotByClassName("Zephyr7bBot"),
bots.getBotByClassName("Gemma2bItBot"),
bots.getBotByClassName("Gemma7bItBot"),
bots.getBotByClassName("Claude3SonnetBot"),
bots.getBotByClassName("Claude3OpusBot"),
],
api: [
bots.getBotByClassName("GeminiBot"),
Expand Down
12 changes: 12 additions & 0 deletions src/bots/lmsys/Claude3OpusBot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import LMSYSBot from "./LMSYSBot";

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

constructor() {
super();
}
}
12 changes: 12 additions & 0 deletions src/bots/lmsys/Claude3SonnetBot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import LMSYSBot from "./LMSYSBot";

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

constructor() {
super();
}
}
4 changes: 3 additions & 1 deletion src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@
"llama-2-7b-chat": "llama-2-7b",
"llama-2-70b-chat": "llama-2-70b",
"gemma-7b-it": "gemma-7b-it",
"gemma-2b-it": "gemma-2b-it"
"gemma-2b-it": "gemma-2b-it",
"claude-3-sonnet-20240229": "claude-3-sonnet-20240229",
"claude-3-opus-20240229": "claude-3-opus-20240229"
},
"moss": {
"name": "MOSS"
Expand Down

0 comments on commit aec4abc

Please sign in to comment.