feat: Add tools for open weather search and image generation using the Spark API. (#2845)
This commit is contained in:
parent
4502436c47
commit
cb79a90031
13 changed files with 513 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue