generate
endpoint for LLMs as deprecated. Follow their migration guide to start using their Chat API via the ChatCohere
integration.Cohere
features and configuration options, please refer to the API reference.
Class | Package | Local | Serializable | PY support | Package downloads | Package latest |
---|---|---|---|---|---|---|
Cohere | @langchain/cohere | ❌ | ✅ | ✅ |
@langchain/cohere
integration package.
COHERE_API_KEY
environment variable:
@langchain/cohere
package:
CohereClient
and pass it to the ChatCohere constructor.
Note: If a custom client is provided both COHERE_API_KEY
environment variable and apiKey
parameter in the constructor will be ignored.