Class ChatCohere<CallOptions>

Integration with ChatCohere

const model = new ChatCohere({
apiKey: process.env.COHERE_API_KEY, // Default
model: "command-r-plus" // Default
});
const response = await model.invoke([
new HumanMessage("How tall are the largest pengiuns?")
]);

Type Parameters

Hierarchy (view full)

Implements

Constructors

Methods

Constructors

Methods