A simple gpt3.5-turbo based chatbot using the OpenAI API with context held for 2 exhanges. Usage requires you to have an OpenAI API key.
Clone the repo locally and navigate to the root directory. Run npm install
to install all package dependencies.
- Set both the
OPENAI_API_KEY
andOPENAI_ORG
environment variables in your terminal by runningexport OPENAI_API_KEY='<Your key here>'
andexport 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!