# Getting error "\[error \] llm command generator.llm.error error=AttributeError("module 'cohere' has no attribute 'error'")", how to resolve it

**URL:** <https://forum.rasa.com/t/getting-error-error-llm-command-generator-llm-error-error-attributeerror-module-cohere-has-no-attribute-error-how-to-resolve-it/61965>\
**Category:** Rasa CALM\
**Created:** [May 16, 2024, 6:47am UTC](https://forum.rasa.com/t/getting-error-error-llm-command-generator-llm-error-error-attributeerror-module-cohere-has-no-attribute-error-how-to-resolve-it/61965 "2024-05-16T06:47:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivasegu](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sivasegu](https://forum.rasa.com/u/sivasegu)\
**Post date:** [May 16, 2024, 6:47am UTC](https://forum.rasa.com/t/getting-error-error-llm-command-generator-llm-error-error-attributeerror-module-cohere-has-no-attribute-error-how-to-resolve-it/61965/1 "2024-05-16T06:47:22Z")

</div>

my config file:

recipe: default.v1 language: en pipeline:

- name: LLMCommandGenerator llm: type: “cohere” model: “command”

policies:

- name: FlowPolicy

and I also have my cohere API key in .env file.

When I run rasa inspect, and enter Hi in the inspector am getting the response is not printing and its showing: “Sorry, I am having trouble with that. Please try again in a few minutes.”.

and in terminal its showing “[error] llm command generator.llm.error error=AttributeError(“module ‘cohere’ has no attribute ‘error’”)”.

Please suggest me how to resolve it as am new to RASA CALM and am using python version 3.10.11 in mac

---

<div class="post-metadata">

**Author:** ![MannavaVivek](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mannavavivek/32/24083_2.png) [@MannavaVivek](https://forum.rasa.com/u/MannavaVivek)\
**Post date:** [May 16, 2024, 7:59am UTC](https://forum.rasa.com/t/getting-error-error-llm-command-generator-llm-error-error-attributeerror-module-cohere-has-no-attribute-error-how-to-resolve-it/61965/2 "2024-05-16T07:59:59Z")

</div>

I believe this is the same issue discussed here: [post](https://forum.rasa.com/t/integrate-cohere-with-rasa-pro/61510)

Rasa Pro 3.8.x doesn’t support Cohere as of now, so try downgrading it to 3.7.9 or similar and downgrade the cohere version

```auto
pip install cohere==4.57

```
