I have been trying to implement a basic chatbot using langchainJS following the documentation but getting an error .
I there any way to fix it ?
I am attaching the error I’m facing and my code for reference.
//import { ChatOpenAI } from "@langchain/openai";
import { ChatOpenAI } from "@langchain/openai";
import { HumanMessage } from "@langchain/core/messages";
import { AIMessage } from "@langchain/core/messages";
const chat = new ChatOpenAI({});
await chat.invoke([
new HumanMessage(
"Translate this sentence from English to French: I love programming."
),
new AIMessage("J'adore la programmation."),
new HumanMessage("What did you just say?"),
]);
console.log("Response :", response);

