Skip to content

Deluxer/gpt-chatbot-langchain-js

Repository files navigation

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

Getting Started

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.

Learn More

Langchain javascript

About

Langchain using javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published