/chit-chat

Primary LanguagePython

README

This code is a simple chatbot built on top of OpenAI's GPT-3 language model. It allows you to chat with the GPT-3 model in a conversational manner.

Prerequisites

  • Python 3.6 or higher
  • OpenAI API key

Installation

  1. Clone the repository or download the files.
  2. Install the required packages by running pip install -r requirements.txt.

Usage

  1. Set your OpenAI API key as an environment variable named OPENAI_API_KEY.
  2. Run the code using the command python chatbot.py.
  3. Choose a model by entering the number corresponding to the model you want to use.
  4. Start chatting with the model by entering your messages in the terminal.

Note: The available models are ChatGPT, CodeGPT, TaxGPT, and Custom. The default model is ChatGPT.

Customization You can customize the chatbot by modifying the code. For example, you can change the messages that the chatbot sends or add additional models to choose from.

2023-03-25 10 09 20