This repository contains a simple chatbot powered by the ChatGPT-3.5 API. The chatbot utilizes state-of-the-art language modeling capabilities to provide interactive and dynamic conversations.
- Natural Language Processing: The chatbot uses advanced NLP techniques to understand and generate human-like responses.
- Conversational AI: It engages in interactive conversations, allowing users to ask questions, seek information, or simply have a chat.
- Powered by ChatGPT-3.5: The chatbot leverages the powerful capabilities of the ChatGPT-3.5 API, developed by OpenAI.
- Simple and Easy to Use: The chatbot is designed to be user-friendly, making it accessible to both developers and non-technical users.
To run the chatbot locally, you need to have the following requirements installed:
- Python 3.7 or higher
- OpenAI Python library
You can install the required Python library using the following command:
pip install openai
To start using the chatbot, follow these steps:
- Clone this repository to your local machine.
- Install the required dependencies as mentioned in the "Requirements" section.
- Obtain an API key from OpenAI. You can find more information on how to get an API key on the OpenAI website.
- Set your API key as an environment variable or update the code with your API key.
OPENAI_API_KEY=<your-api-key>
- Replace your-api-key with your actual API key obtained from OpenAI.
- Run the chatbot script by executing the following command:
python chatbot.py
- Once the chatbot is running, you can start interacting with it by sending messages or questions. The chatbot will respond with generated replies based on the input.