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

Update semantic_router/encoders/mistral.py

parent a4ae5715
No related branches found
No related tags found
No related merge requests found
......@@ -25,11 +25,7 @@ class MistralEncoder(BaseEncoder):
if name is None:
name = EncoderDefault.MISTRAL.value["embedding_model"]
super().__init__(name=name, score_threshold=score_threshold)
(
self._client,
self._embedding_response,
self._mistral_exception,
) = self._initialize_client(mistralai_api_key)
self._client, self._mistralai = self._initialize_client(mistralai_api_key)
def _initialize_client(self, api_key):
try:
......
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