All Projects
💬
AIBeginner

AI Study Chatbot

Build a terminal chatbot in Python that calls an LLM API and remembers the last few messages for context.

Components Needed

  • Python 3
  • An LLM API key
  • requests library

Step-by-Step Guide

  1. 1

    Set up a Python virtual environment.

  2. 2

    Store your API key in an env variable.

  3. 3

    Write a loop that takes input and calls the API.

  4. 4

    Add short-term memory by appending past messages.