Skip to content

A simple bot template using the openAI API key to do a specific task through function calling & tools. In this case, a weather bot example. Additionally using firebase to store messages.

Notifications You must be signed in to change notification settings

x86senniral/TempoGPT

Repository files navigation

TempoGPT

A simple bot template using the openAI API key to do a specific task through function calling & tools. In this case, a weather type bot example using the OpenWeather API. Additionally using firebase to store messages. Made in ReactJS.

Deployment

  1. Usage
  git clone https://github.com/vahshellus/TempoGPT.git

or simply download the .zip.

  1. Install Use npm install to install all of the required dependencies.

  2. Deploy

  • Use npm run dev to deploy the application.
  • Navigate to /src/backend and deploy server.js through node server.js (This is where the route will be used to transfer requests.)

Replacements

  • Replace the data in firebase.js with your own firebase web app configurations.
  • Add in your openAI API key in chatbot.py at OpenAI(api_key='')
  • If you wish to use the weather api in the example, sign up for the OpenWeatherMap for free and add in your API key in API_KEY.

Possible Python Error

  • In server.js I'm using spawn('python3', ['../utility/chatbot.py']); , if you're using another version of python or "plain" python , then just replace python3 by python

Demo

image

About

A simple bot template using the openAI API key to do a specific task through function calling & tools. In this case, a weather bot example. Additionally using firebase to store messages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published