Selaa lähdekoodia

Merge pull request #2103 from 6vision/claude-3.5-sonnet

feat: support claude-3.5-sonnet model
master
Saboteur7 GitHub 4 kuukautta sitten
vanhempi
commit
a05781ec19
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. +2
    -0
      bot/claudeapi/claude_api_bot.py
  2. +1
    -1
      common/const.py

+ 2
- 0
bot/claudeapi/claude_api_bot.py Näytä tiedosto

@@ -130,4 +130,6 @@ class ClaudeAPIBot(Bot, OpenAIImage):
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

+ 1
- 1
common/const.py Näytä tiedosto

@@ -61,7 +61,7 @@ MODEL_LIST = [
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


Loading…
Peruuta
Tallenna