Add support for Anthropic Claude Opus 4.6 in webbench (#4777)

This commit is contained in:
Shuchang Zheng
2026-02-17 20:35:44 -08:00
committed by GitHub
parent fc41285f96
commit 47cf46f956
16 changed files with 2675 additions and 3455 deletions

View File

@@ -387,6 +387,16 @@ if settings.ENABLE_ANTHROPIC:
max_completion_tokens=64000,
),
)
LLMConfigRegistry.register_config(
"ANTHROPIC_CLAUDE4.6_OPUS",
LLMConfig(
"anthropic/claude-opus-4-6",
["ANTHROPIC_API_KEY"],
supports_vision=True,
add_assistant_prefix=True,
max_completion_tokens=64000,
),
)
if settings.ENABLE_BEDROCK:
# Supported through AWS IAM authentication
@@ -524,6 +534,16 @@ if settings.ENABLE_BEDROCK:
max_completion_tokens=64000,
),
)
LLMConfigRegistry.register_config(
"BEDROCK_ANTHROPIC_CLAUDE4.6_OPUS_INFERENCE_PROFILE",
LLMConfig(
"bedrock/us.anthropic.claude-opus-4-6-v1",
["AWS_REGION"],
supports_vision=True,
add_assistant_prefix=True,
max_completion_tokens=64000,
),
)
if settings.ENABLE_AZURE: