-
Notifications
You must be signed in to change notification settings - Fork 16k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MistralAI] Improve MistralAIEmbeddings #29242
base: master
Are you sure you want to change the base?
[MistralAI] Improve MistralAIEmbeddings #29242
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
@@ -223,7 +224,9 @@ def embed_documents(self, texts: List[str]) -> List[List[float]]: | |||
batch_responses = [] | |||
|
|||
@retry( | |||
retry=retry_if_exception_type(httpx.TimeoutException), | |||
retry=retry_if_exception_type( | |||
(httpx.TimeoutException, httpx.HTTPStatusError) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will any other error codes raise HTTPStatusError?
Httpx docs say "4xx or 5xx". Can we catch 429 errors specifically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The httpx library does not provide an exception definition for TooManyRequests, which is included in the HTTPStatus Error
#29125