Skip to content
Snippets Groups Projects
Unverified Commit 2b690336 authored by Zahid Syed's avatar Zahid Syed Committed by GitHub
Browse files

Update semantic_router/encoders/mistral.py

parent bf517a93
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ class MistralEncoder(BaseEncoder):
embeds = self._client.embeddings(model=self.name, input=docs)
if embeds.data:
break
except self._mistral_exception as e:
except self._mistralai.exceptions.MistralException as e:
sleep(2**_)
error_message = str(e)
except Exception as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment