Skip to content

Commit

Permalink
Merge pull request #2103 from 6vision/claude-3.5-sonnet
Browse files Browse the repository at this point in the history
feat: support claude-3.5-sonnet model
  • Loading branch information
Saboteur7 authored Jul 5, 2024
2 parents e6d0a15 + f898ed6 commit a05781e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bot/claudeapi/claude_api_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,6 @@ def _model_mapping(self, model) -> str:
return "claude-3-sonnet-20240229"
elif model == "claude-3-haiku":
return "claude-3-haiku-20240307"
elif model == "claude-3.5-sonnet":
return "claude-3-5-sonnet-20240620"
return model
2 changes: 1 addition & 1 deletion common/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
WEN_XIN, WEN_XIN_4,
XUNFEI, ZHIPU_AI, MOONSHOT, MiniMax,
GEMINI, GEMINI_PRO, GEMINI_15_flash, GEMINI_15_PRO,
"claude", "claude-3-haiku", "claude-3-sonnet", "claude-3-opus", "claude-3-opus-20240229",
"claude", "claude-3-haiku", "claude-3-sonnet", "claude-3-opus", "claude-3-opus-20240229", "claude-3.5-sonnet",
"moonshot-v1-8k", "moonshot-v1-32k", "moonshot-v1-128k",
QWEN, QWEN_TURBO, QWEN_PLUS, QWEN_MAX,
LINKAI_35, LINKAI_4_TURBO, LINKAI_4o
Expand Down

0 comments on commit a05781e

Please sign in to comment.