/Basic-OpenAi-Chatbot

An example of a basic chatbot with a persistent conversation list using the OpenAi Api.

Primary LanguagePythonMIT LicenseMIT

Basic-OpenAi-Chatbot

An example of a basic chatbot with a persistent conversation list using the OpenAi Api from my youtube tutorial. (Not released as of now)

If you find this code useful, consider checking out my main Ai Assistant project: https://github.com/libraryofcelsus/Aetherius_AI_Assistant

If you want more code tutorials like this, follow me on github and youtube: https://www.youtube.com/@LibraryofCelsus

(Channel isn't launched yet, I have multiple scripts like this written, but am still working on a video production format. Subscribe for its Launch!)

In-Depth Code Tutorials in a documentation format available at: https://www.libraryofcelsus.com/research/public/code-tutorials/

Window's Installation

  1. Install Git
  2. Install Python 3.10.6, Make sure you add it to PATH
  3. Open Git Bash Program
  4. Run git clone: git clone https://github.com/libraryofcelsus/Basic-OpenAi-Chatbot
  5. Open the Command Line as admin and navigate to the project install folder with cd
  6. Create a virtual environment: python -m venv venv
  7. Activate the virtual enviornment with: .\venv\Scripts\activate
  8. Install the requirements with pip install -r requirements.txt
  9. Edit and set your username and chatbot name in the .txt files
  10. Edit and set your main prompt and greeting in the .txt files
  11. Add your OpenAi Api Key to key_openai.txt
  12. Run the chatbot with python OpenAi_Api_Example.py

*Note, you will need to run .\venv\Scripts\activate every time you exit the command line to reactivate the virtual enviornment.


My Ai research is self-funded, consider supporting me if you find it useful :)

Buy Me a Coffee at ko-fi.com


Contact

Discord: libraryofcelsus -> Old Username Style: Celsus#0262

MEGA Chat: https://mega.nz/C!pmNmEIZQ

Email: libraryofcelsusofficial@gmail.com