Cut off the text as soon as any stop words occur.
Use tenacity to retry the completion call.
Use tenacity to retry the completion call.
Base class for Cohere models.
Cohere large language models.
To use, you should have the cohere python package installed, and the
environment variable COHERE_API_KEY set with your API key, or pass
it as a named parameter to the constructor.