Skip to content
Snippets Groups Projects
Unverified Commit df56ca18 authored by Siraj R Aizlewood's avatar Siraj R Aizlewood
Browse files

Better exception msg.

parent 36fb6183
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,6 @@ class CohereEncoder(BaseEncoder): ...@@ -57,6 +57,6 @@ class CohereEncoder(BaseEncoder):
"Handling of EmbedByTypeResponseEmbeddings is not implemented." "Handling of EmbedByTypeResponseEmbeddings is not implemented."
) )
else: else:
raise ValueError("Unexpected response type from Cohere API") raise ValueError(f"Unexpected response type from Cohere API: type(embeds) = {type(embeds)}")
except Exception as e: except Exception as e:
raise ValueError(f"Cohere API call failed. Error: {e}") from e raise ValueError(f"Cohere API call failed. Error: {e}") from e
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