add anthropic claude3.7 support (#1831)

This commit is contained in:
Shuchang Zheng
2025-02-24 17:22:17 -08:00
committed by GitHub
parent c3dade1ebe
commit 31144fa125

View File

@@ -164,6 +164,16 @@ if settings.ENABLE_ANTHROPIC:
max_completion_tokens=8192,
),
)
LLMConfigRegistry.register_config(
"ANTHROPIC_CLAUDE3.7_SONNET",
LLMConfig(
"anthropic/claude-3-7-sonnet-latest",
["ANTHROPIC_API_KEY"],
supports_vision=True,
add_assistant_prefix=True,
max_completion_tokens=8192,
),
)
if settings.ENABLE_BEDROCK:
# Supported through AWS IAM authentication