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

Update semantic_router/encoders/mistral.py

parent 2b690336
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ class MistralEncoder(BaseEncoder): ...@@ -67,7 +67,7 @@ class MistralEncoder(BaseEncoder):
if ( if (
not embeds not embeds
or not isinstance(embeds, self._embedding_response) or not isinstance(embeds, self._mistralai.models.embeddings.EmbeddingResponse)
or not embeds.data or not embeds.data
): ):
raise ValueError(f"No embeddings returned from MistralAI: {error_message}") raise ValueError(f"No embeddings returned from MistralAI: {error_message}")
......
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