Skip to content

Commit

Permalink
Update semantic_router/encoders/mistral.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ismail Ashraq <59014721+ashraq1455@users.noreply.github.com>
  • Loading branch information
zahid-syed and ashraq1455 authored Mar 14, 2024
1 parent df56086 commit bf517a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion semantic_router/encoders/mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _initialize_client(self, api_key):
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:
Expand Down

0 comments on commit bf517a9

Please sign in to comment.