Hello everyone, please make sure to correct the code for langchain, it gives the following error:
AsyncClient.__init__() got an unexpected keyword argument 'max_retries' (type=type_error)
The reason is that AsyncClient and Client from cohere do not have 'max_retries'
argument in the constructor
The solution is to remove the max_retries
from venv\Lib\site-packages\langchain\embeddings\cohere.py
at lines 63 and 69.
Thanks.