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

@@ -499,6 +499,18 @@ class Settings(BaseSettings):
"label": "Anthropic Claude 4.5 Haiku",
}
# Anthropic Claude 4.6 Opus: prefer Bedrock when enabled, fall back to direct API
if self.ENABLE_BEDROCK_ANTHROPIC:
mapping["claude-opus-4-6"] = {
"llm_key": "BEDROCK_ANTHROPIC_CLAUDE4.6_OPUS_INFERENCE_PROFILE",
"label": "Anthropic Claude 4.6 Opus",
}
else:
mapping["claude-opus-4-6"] = {
"llm_key": "ANTHROPIC_CLAUDE4.6_OPUS",
"label": "Anthropic Claude 4.6 Opus",
}
return mapping
def model_post_init(self, __context: Any) -> None: # type: ignore[override]