Default the old anthropic model name for backwards compatibility (#285)

This commit is contained in:
Kerem Yilmaz
2024-05-08 20:43:52 -07:00
committed by GitHub
parent 4b352b2ad0
commit bf55bf8314
3 changed files with 159 additions and 1 deletions

View File

@@ -59,6 +59,9 @@ if SettingsManager.get_settings().ENABLE_OPENAI:
LLMConfigRegistry.register_config("OPENAI_GPT4V", LLMConfig("gpt-4-turbo", ["OPENAI_API_KEY"], True))
if SettingsManager.get_settings().ENABLE_ANTHROPIC:
LLMConfigRegistry.register_config(
"ANTHROPIC_CLAUDE3", LLMConfig("anthropic/claude-3-sonnet-20240229", ["ANTHROPIC_API_KEY"], True)
)
LLMConfigRegistry.register_config(
"ANTHROPIC_CLAUDE3_OPUS", LLMConfig("anthropic/claude-3-opus-20240229", ["ANTHROPIC_API_KEY"], True)
)