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
parent 4502436c47
commit cb79a90031
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: