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

I believe this is the same issue discussed here: post

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

pip install cohere==4.57