Skip to content

Commit

Permalink
Add Anthropic Claude 3.5 Sonnet via API
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello authored and sunner committed Jul 3, 2024
1 parent 85ceb90 commit 45a76d3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/bots/anthropic/ClaudeAPI35SonnetBot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import ClaudeAPIBot from "./ClaudeAPIBot";

export default class ClaudeAPI35SonnetBot extends ClaudeAPIBot {
static _className = "ClaudeAPI35SonnetBot";
static _logoFilename = "claudeapi-sonnet-logo.png";
static _model = "claude-3-5-sonnet-20240620";
constructor() {
super();
}
}
3 changes: 3 additions & 0 deletions src/bots/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ import ClaudeAPIOpusBot from "./anthropic/ClaudeAPIOpusBot";
import ClaudeAPI20Bot from "./anthropic/ClaudeAPI20Bot";
import ClaudeAPI21Bot from "./anthropic/ClaudeAPI21Bot";
import ClaudeAPISonnetBot from "./anthropic/ClaudeAPISonnetBot";
import ClaudeAPI35SonnetBot from "./anthropic/ClaudeAPI35SonnetBot";
import ClaudeAPIHaikuBot from "./anthropic/ClaudeAPIHaikuBot";
import ClaudeAPIInstant12Bot from "./anthropic/ClaudeAPIInstant12Bot";

Expand All @@ -106,6 +107,7 @@ const all = [
Claude3SonnetBot.getInstance(),
ClaudeAPIOpusBot.getInstance(),
ClaudeAPISonnetBot.getInstance(),
ClaudeAPI35SonnetBot.getInstance(),
ClaudeAPIHaikuBot.getInstance(),
ClaudeAPI20Bot.getInstance(),
ClaudeAPI21Bot.getInstance(),
Expand Down Expand Up @@ -307,6 +309,7 @@ export const botTags = {
bots.getBotByClassName("ClaudeAPIInstant12Bot"),
bots.getBotByClassName("ClaudeAPIOpusBot"),
bots.getBotByClassName("ClaudeAPISonnetBot"),
bots.getBotByClassName("ClaudeAPI35SonnetBot"),
bots.getBotByClassName("CohereAPICommandBot"),
bots.getBotByClassName("CohereAPICommandLightBot"),
bots.getBotByClassName("CohereAPICommandRBot"),
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 @@ -130,6 +130,7 @@
"claude-3-opus-20240229": "claude-3-opus",
"claude-3-sonnet-20240229": "claude-3-sonnet",
"claude-3-haiku-20240307": "claude-3-haiku",
"claude-3-5-sonnet-20240620": "claude-3.5-sonnet",
"claude-21": "claude-2.1",
"claude-20": "claude-2.0",
"claude-instant-12": "claude-instant"
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 @@ -130,6 +130,7 @@
"claude-3-opus-20240229" : "claude-3-opus",
"claude-3-sonnet-20240229": "claude-3-sonnet",
"claude-3-haiku-20240307": "claude-3-haiku",
"claude-3-5-sonnet-20240620": "claude-3.5-sonnet",
"claude-21":"claude-2.1",
"claude-20":"claude-2.0",
"claude-instant-12":"claude-instant"
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 @@ -130,6 +130,7 @@
"claude-3-opus-20240229" : "claude-3-opus",
"claude-3-sonnet-20240229": "claude-3-sonnet",
"claude-3-haiku-20240307": "claude-3-haiku",
"claude-3-5-sonnet-20240620": "claude-3.5-sonnet",
"claude-21":"claude-2.1",
"claude-20":"claude-2.0",
"claude-instant-12":"claude-instant"
Expand Down

0 comments on commit 45a76d3

Please sign in to comment.