Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return Cohere embeddings as lists of floats (langchain-ai#1394)
This PR fixes the types returned by Cohere embeddings. Currently, Cohere client returns instances of `cohere.embeddings.Embeddings`. Since the transport layer relies on JSON, some numbers might be represented as ints, not floats, which happens quite often. While that doesn't seem to be an issue, it breaks some pydantic models if they require strict floats.
- Loading branch information