From bf517a93a81a8844e7db484b690e36c94ec7ea21 Mon Sep 17 00:00:00 2001
From: Zahid Syed <98535579+zahid-syed@users.noreply.github.com>
Date: Thu, 14 Mar 2024 12:10:12 -0400
Subject: [PATCH] Update semantic_router/encoders/mistral.py

Co-authored-by: Ismail Ashraq <59014721+ashraq1455@users.noreply.github.com>
---
 semantic_router/encoders/mistral.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/semantic_router/encoders/mistral.py b/semantic_router/encoders/mistral.py
index 06d4e68d..cfefda82 100644
--- a/semantic_router/encoders/mistral.py
+++ b/semantic_router/encoders/mistral.py
@@ -45,7 +45,7 @@ class MistralEncoder(BaseEncoder):
             client = MistralClient(api_key=api_key)
         except Exception as e:
             raise ValueError(f"Unable to connect to MistralAI {e.args}: {e}") from e
-        return client, embedding_response, mistral_exception
+        return client, mistralai
 
     def __call__(self, docs: List[str]) -> List[List[float]]:
         if self._client is None:
-- 
GitLab