A simple command-line chatbot built with Python and the OpenAI API.
- Chat with GPT models (supports gpt-3.5, gpt-4o-mini, etc.)
- Interactive command-line interface
- Easy to extend with other models
Clone the repo:
git clone https://github.com/Surabhi6300/Python_Chatbot.git
cd Python_Chatbot
Create a virtual environment and install dependencies:
Run the chatbot:
python main.py
Type your message and the bot will reply. To exit, type exit, quit, or bye.
📦 Requirements Python 3.9+
openai package
Install with:
pip install openai