This is the repository for the CS 123 LLM Lab. The lab is designed to help you get familiar with the basic concepts of LLMs and how to easily use an LLM api.
- Clone this repository
- Install the requirements
pip install -r requirements.txt
- Put your api key in the `constants.py`` file
- Run
simple_conversation.py
to see how the api works and chat with ChatGPT in your command line. - Run
prompted_conversation.py
to see how "system prompts" work. - Run
make_robot_script.py
and let ChatGPT write a script for you. - Making the robot move by running the output scripts in
outputs/
! - Try setting
RUN_CODE
toTrue
inmake_robot_script.py
and see what happens!