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

Update semantic_router/encoders/mistral.py

parent 704ab01e
No related branches found
No related tags found
No related merge requests found
...@@ -33,9 +33,8 @@ class MistralEncoder(BaseEncoder): ...@@ -33,9 +33,8 @@ class MistralEncoder(BaseEncoder):
def _initialize_client(self, api_key): def _initialize_client(self, api_key):
try: try:
import mistralai
from mistralai.client import MistralClient from mistralai.client import MistralClient
from mistralai.exceptions import MistralException
from mistralai.models.embeddings import EmbeddingResponse
except ImportError: except ImportError:
raise ImportError( raise ImportError(
"Please install MistralAI to use MistralEncoder. " "Please install MistralAI to use MistralEncoder. "
......
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