mirror of https://github.com/hwchase17/langchain
community[patch]: Fixed the 'aembed' method of 'CohereEmbeddings'. (#16497)
**Description:** - The existing code was trying to find a `.embeddings` property on the `Coroutine` returned by calling `cohere.async_client.embed`. - Instead, the `.embeddings` property is present on the value returned by the `Coroutine`. - Also, it seems that the original cohere client expects a value of `max_retries` to not be `None`. Hence, setting the default value of `max_retries` to `3`. --------- Co-authored-by: Bagatur <baskaryan@gmail.com>pull/17434/head
parent
9f1cbbc6ed
commit
37e1275f9e
Loading…
Reference in New Issue