diff --git a/semantic_router/encoders/mistral.py b/semantic_router/encoders/mistral.py index 06d4e68dbbefe2ce12eaa43ab4aa8c852c40a2ad..cfefda825ed497f689b8da77d7d25e631c5ebc6a 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: