feat(model): support claude-sonnet-5

This commit is contained in:
zhayujie
2026-07-01 10:31:06 +08:00
parent e5f3eb48d4
commit 80fea77c86
16 changed files with 38 additions and 36 deletions

View File

@@ -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