/Chatbot-AI-API-Python

A simple chatbot built with Python that uses AI and an API to chat with users.

Primary LanguagePython

Chatbot-AI-API-Python

A simple chatbot built with Python that uses AI and an API to chat with users.

Setup

  1. Install the required packages:

    pip install openai
  2. Create a config.py file and add your API key:

    API_KEY = 'YOUR_API_KEY'
  3. Run the chatbot:

    python chatbot.py

Testing

Run the tests using: bash python -m unittest test_chatbot.py