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

Update semantic_router/encoders/mistral.py

parent e32c5e38
No related branches found
No related tags found
No related merge requests found
...@@ -47,8 +47,6 @@ class MistralEncoder(BaseEncoder): ...@@ -47,8 +47,6 @@ class MistralEncoder(BaseEncoder):
raise ValueError("Mistral API key not provided") raise ValueError("Mistral API key not provided")
try: try:
client = MistralClient(api_key=api_key) client = MistralClient(api_key=api_key)
embedding_response = EmbeddingResponse
mistral_exception = MistralException
except Exception as e: except Exception as e:
raise ValueError(f"Unable to connect to MistralAI {e.args}: {e}") from e raise ValueError(f"Unable to connect to MistralAI {e.args}: {e}") from e
return client, embedding_response, mistral_exception return client, embedding_response, mistral_exception
......
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