Skip to content

Commit a05781e

Browse files
authored
Merge pull request #2103 from 6vision/claude-3.5-sonnet
feat: support claude-3.5-sonnet model
2 parents e6d0a15 + f898ed6 commit a05781e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bot/claudeapi/claude_api_bot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,6 @@ def _model_mapping(self, model) -> str:
130130
return "claude-3-sonnet-20240229"
131131
elif model == "claude-3-haiku":
132132
return "claude-3-haiku-20240307"
133+
elif model == "claude-3.5-sonnet":
134+
return "claude-3-5-sonnet-20240620"
133135
return model

common/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
WEN_XIN, WEN_XIN_4,
6262
XUNFEI, ZHIPU_AI, MOONSHOT, MiniMax,
6363
GEMINI, GEMINI_PRO, GEMINI_15_flash, GEMINI_15_PRO,
64-
"claude", "claude-3-haiku", "claude-3-sonnet", "claude-3-opus", "claude-3-opus-20240229",
64+
"claude", "claude-3-haiku", "claude-3-sonnet", "claude-3-opus", "claude-3-opus-20240229", "claude-3.5-sonnet",
6565
"moonshot-v1-8k", "moonshot-v1-32k", "moonshot-v1-128k",
6666
QWEN, QWEN_TURBO, QWEN_PLUS, QWEN_MAX,
6767
LINKAI_35, LINKAI_4_TURBO, LINKAI_4o

0 commit comments

Comments
 (0)