Skip to content

Commit

Permalink
Update semantic_router/encoders/mistral.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ismail Ashraq <59014721+ashraq1455@users.noreply.github.com>
  • Loading branch information
zahid-syed and ashraq1455 authored Mar 14, 2024
1 parent bf517a9 commit 2b69033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion semantic_router/encoders/mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __call__(self, docs: List[str]) -> List[List[float]]:
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:
Expand Down

0 comments on commit 2b69033

Please sign in to comment.