This is a chatbot using the Langchain tools in JavaScript, consuming the OpenAI API (GPT-3).
A chatbot was created that can interact with GPT-3 and remember the message history to maintain a consistent conversation.
The following was used from Langchain:
- LLm
- Memory
- Chain
First, go to openai API key and create a key access. Create an env.local and set the apy key
NEXT_PUBLIC_OPENAI_API_KEY="sk-thekeysuperdupersecret"
Then, run a project.
yarn dev
Open http://localhost:3000 with your browser to see the result.