Fix incorrect initialization syntax for ChatOpenAI
in DOC: <Issue related to /v0.2/docs/tutorials/chatbot>
#5904
Labels
auto:documentation
Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder
Checklist
Issue with current documentation:
The current documentation on LangChain(Link: https://js.langchain.com/v0.2/docs/tutorials/chatbot#quickstart) for initializing the ChatOpenAI instance contains an error in the syntax. The provided example uses:
const model = new ChatOpenAI(model="gpt-3.5-turbo");
, which leads to aReferenceError
. Instead, it should be using an object to pass the configuration parameter, like this:const model = new ChatOpenAI({ model: "gpt-3.5-turbo" });
.Idea or request for content:
To improve the documentation, I suggest updating the example to use the correct syntax:
const model = new ChatOpenAI({ model: "gpt-3.5-turbo" });
The text was updated successfully, but these errors were encountered: