This is a fork of ConnorSwis's GPT.lua built to work with Advanced Peripherals ChatBox
ChatGPT Interface for Computercraft Computers
Connor J. Swislow, Bluemethyst
Unlicense (public domain dedication)
GPT.lua is a Lua script designed for Computercraft computers, providing an interface to interact with the OpenAI ChatGPT API. It allows users to have interactive conversations with the language model using a simple chat-based system.
- OpenAI API key: To use this program, you need to have an OpenAI API key. Make sure to obtain one before running the script.
- Computercraft: This script is designed to run within the Computercraft mod for Minecraft. Ensure that you have Computercraft installed and running on your Minecraft server or local game.
- After the program has been installed and the computer has restarted, it will prompt you to enter your OpenAI API key.
- Paste your API key when prompted. This step is required to authenticate your access to the OpenAI ChatGPT API.
- Once the API key is set, the program will display a randomly chosen title for the chatbot.
- Type your messages to have a conversation with the chatbot. Type 'exit' to exit the program.
- The chatbot will respond to your messages based on the conversation history and the underlying language model.
- Enjoy interacting with the ChatGPT-powered chatbot!
- This script is dependent on an internet connection to communicate with the OpenAI ChatGPT API.
- Use the GPT-3.5 Turbo model for generating responses. Adjust the 'model' variable in the script if you want to use a different model.
This program is based on the OpenAI GPT-3.5 language model and was created by Connor J. Swislow. Forked by Bluemethyst to work with AdvancedPeripherals ChatBox