fix: Claude can not validate credientials (#8109)

This commit is contained in:
crazywoola 2024-09-09 10:22:42 +08:00 committed by GitHub
parent d3658166fb
commit ab7d79275e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -19,9 +19,9 @@ class AnthropicProvider(ModelProvider):
try:
model_instance = self.get_model_instance(ModelType.LLM)
# Use `claude-instant-1` model for validate,
# Use `claude-3-opus-20240229` model for validate,
model_instance.validate_credentials(
model='claude-instant-1.2',
model='claude-3-opus-20240229',
credentials=credentials
)
except CredentialsValidateFailedError as ex:

View File

@ -33,3 +33,4 @@ pricing:
output: '5.51'
unit: '0.000001'
currency: USD
deprecated: true