Fix Claude 4 model names to use specific versions instead of -latest suffix (#2531)

This commit is contained in:
Tiger Shen
2025-05-30 18:13:05 -07:00
committed by GitHub
parent 5580548e7d
commit 73e366bbad

View File

@@ -253,7 +253,7 @@ if settings.ENABLE_ANTHROPIC:
LLMConfigRegistry.register_config(
"ANTHROPIC_CLAUDE4_OPUS",
LLMConfig(
"anthropic/claude-opus-4-latest",
"anthropic/claude-opus-4-20250514",
["ANTHROPIC_API_KEY"],
supports_vision=True,
add_assistant_prefix=True,
@@ -263,7 +263,7 @@ if settings.ENABLE_ANTHROPIC:
LLMConfigRegistry.register_config(
"ANTHROPIC_CLAUDE4_SONNET",
LLMConfig(
"anthropic/claude-sonnet-4-latest",
"anthropic/claude-sonnet-4-20250514",
["ANTHROPIC_API_KEY"],
supports_vision=True,
add_assistant_prefix=True,