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

Update semantic_router/encoders/mistral.py

parent df560861
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ class MistralEncoder(BaseEncoder): ...@@ -45,7 +45,7 @@ class MistralEncoder(BaseEncoder):
client = MistralClient(api_key=api_key) client = MistralClient(api_key=api_key)
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, mistralai
def __call__(self, docs: List[str]) -> List[List[float]]: def __call__(self, docs: List[str]) -> List[List[float]]:
if self._client is None: if self._client is None:
......
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