A simple chatbot built with Python that uses AI and an API to chat with users.
-
Install the required packages:
pip install openai
-
Create a
config.py
file and add your API key:API_KEY = 'YOUR_API_KEY'
-
Run the chatbot:
python chatbot.py
Run the tests using:
bash python -m unittest test_chatbot.py