Skip to content

usr20k/simple-davinci-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-davinci-chatbot

A simple davinci-based chatbot using the OpenAI API. Usage requires you to have an OpenAI API key.

Installation

Clone the repo locally and navigate to the root directory. Run npm install to install all package dependencies.

Running the ChatBot

  • Set both the OPENAI_API_KEY and OPENAI_ORG environment variables in your terminal by running export OPENAI_API_KEY='<Your key here>' and export OPENAI_ORG='<Your org here>'. Your can obtain these values from your OpenAI dev account.
  • From the root project directory, run npm start, this will run the server on port 3000.
  • Navigate to localhost:3000 in your browser and have fun chatting!

About

A simple davinci-based chatbot using the OpenAI API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published