From a4ae571562cfcd5cffe4131eb615251ac4afb115 Mon Sep 17 00:00:00 2001 From: Zahid Syed <98535579+zahid-syed@users.noreply.github.com> Date: Thu, 14 Mar 2024 12:09:57 -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, 2 deletions(-) diff --git a/semantic_router/encoders/mistral.py b/semantic_router/encoders/mistral.py index a3768d34..b45603bb 100644 --- a/semantic_router/encoders/mistral.py +++ b/semantic_router/encoders/mistral.py @@ -47,8 +47,6 @@ class MistralEncoder(BaseEncoder): raise ValueError("Mistral API key not provided") try: client = MistralClient(api_key=api_key) - embedding_response = EmbeddingResponse - mistral_exception = MistralException except Exception as e: raise ValueError(f"Unable to connect to MistralAI {e.args}: {e}") from e return client, embedding_response, mistral_exception -- GitLab