mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-17 11:07:11 +08:00
feat(model): support claude-sonnet-5
This commit is contained in:
@@ -223,7 +223,8 @@ class ClaudeAPIBot(Bot, OpenAIImage):
|
||||
return 8192
|
||||
elif model and model.startswith("claude-3") and "opus" in model:
|
||||
return 4096
|
||||
elif model and (model.startswith("claude-sonnet-4") or model.startswith("claude-opus-4") or model.startswith("claude-fable")):
|
||||
elif model and (model.startswith("claude-sonnet-4") or model.startswith("claude-sonnet-5")
|
||||
or model.startswith("claude-opus-4") or model.startswith("claude-fable")):
|
||||
return 64000
|
||||
return 8192
|
||||
|
||||
|
||||
Reference in New Issue
Block a user