Add Claude 4.5 Opus support and improve SDK documentation (#4633)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Suchintan
2026-02-08 00:46:19 -05:00
committed by GitHub
parent 75af862841
commit 8162498952
4 changed files with 304 additions and 151 deletions

View File

@@ -377,6 +377,16 @@ if settings.ENABLE_ANTHROPIC:
max_completion_tokens=64000,
),
)
LLMConfigRegistry.register_config(
"ANTHROPIC_CLAUDE4.5_OPUS",
LLMConfig(
"anthropic/claude-opus-4-5-20251101",
["ANTHROPIC_API_KEY"],
supports_vision=True,
add_assistant_prefix=True,
max_completion_tokens=64000,
),
)
if settings.ENABLE_BEDROCK:
# Supported through AWS IAM authentication
@@ -494,6 +504,26 @@ if settings.ENABLE_BEDROCK:
max_completion_tokens=32000,
),
)
LLMConfigRegistry.register_config(
"BEDROCK_ANTHROPIC_CLAUDE4.5_SONNET_INFERENCE_PROFILE",
LLMConfig(
"bedrock/us.anthropic.claude-sonnet-4-5-20250929-v1:0",
["AWS_REGION"],
supports_vision=True,
add_assistant_prefix=True,
max_completion_tokens=64000,
),
)
LLMConfigRegistry.register_config(
"BEDROCK_ANTHROPIC_CLAUDE4.5_OPUS_INFERENCE_PROFILE",
LLMConfig(
"bedrock/us.anthropic.claude-opus-4-5-20251101-v1:0",
["AWS_REGION"],
supports_vision=True,
add_assistant_prefix=True,
max_completion_tokens=64000,
),
)
if settings.ENABLE_AZURE: