Using Cohere as LLM provider - Rasa CALM - Rasa Community Forum

👋 Introducing the Rasa Playground

Using Cohere as LLM provider

post by abboudtest on Sep 19, 2024

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.

65 views

Related topics

Topic Replies Views Activity
Integrate Cohere with Rasa Pro
Rasa CALM
5 358 May 2024
[Rasa.dialogue_understanding.generator.llm_command_generator - [error ] llm_command_generator.llm.error error=CohereConnectionError(message=Cannot connect to host api.cohere.ai:443 ssl:True [SSLCertVerificationError: (1, ‘SSL: CERTIFICATE_VERIFY_FAILE
Rasa CALM
0 179 Jun 2024
Having error when trying to send a greeting message
Rasa CALM
- rasa,
- calm
2 121 Jul 2024
Getting error “[error ] llm command generator.llm.error error=AttributeError(“module ‘cohere’ has no attribute ‘error’”)”, how to resolve it
Rasa CALM
1 318 May 2024
How to access currently used LLM
Rasa CALM
1 158 Jul 2024

Topic list, column headers with buttons are sortable.