feat: Add tools for open weather search and image generation using the Spark API. (#2845)

This commit is contained in:
Onelevenvy 2024-03-18 16:22:48 +08:00 committed by GitHub
commit cb79a90031
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 513 additions and 2 deletions

View file

@ -124,7 +124,7 @@ class BaichuanTextEmbeddingModel(TextEmbeddingModel):
elif err == 'insufficient_quota':
raise InsufficientAccountBalance(msg)
elif err == 'invalid_authentication':
raise InvalidAuthenticationError(msg)
raise InvalidAuthenticationError(msg)
elif err and 'rate' in err:
raise RateLimitReachedError(msg)
elif err and 'internal' in err: