add support for claude sonnet 4.5 (#3692)

This commit is contained in:
greg niemeyer
2025-10-12 09:57:52 -07:00
committed by GitHub
parent cb35d966ac
commit 9b2bbda3c8
3 changed files with 15 additions and 3 deletions

View File

@@ -321,6 +321,16 @@ if settings.ENABLE_ANTHROPIC:
max_completion_tokens=64000,
),
)
LLMConfigRegistry.register_config(
"ANTHROPIC_CLAUDE4.5_SONNET",
LLMConfig(
"anthropic/claude-sonnet-4-5-20250929",
["ANTHROPIC_API_KEY"],
supports_vision=True,
add_assistant_prefix=True,
max_completion_tokens=64000,
),
)
if settings.ENABLE_BEDROCK:
# Supported through AWS IAM authentication