add support for claude sonnet 4.5 (#3692)
This commit is contained in:
@@ -99,6 +99,7 @@ def setup_llm_providers() -> None:
|
||||
"ANTHROPIC_CLAUDE3.5_HAIKU",
|
||||
"ANTHROPIC_CLAUDE4_OPUS",
|
||||
"ANTHROPIC_CLAUDE4_SONNET",
|
||||
"ANTHROPIC_CLAUDE4.5_SONNET",
|
||||
]
|
||||
)
|
||||
else:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user