Skip to content

A fork of GPT.lua, a ChatGPT intergration in Minecraft using ComputerCraft, designed to work with AdvancedPeripherals ChatBox

Notifications You must be signed in to change notification settings

Bluemethyst/GPT.lua

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

GPT.lua

This is a fork of ConnorSwis's GPT.lua built to work with Advanced Peripherals ChatBox

ChatGPT Interface for Computercraft Computers

Author

Connor J. Swislow, Bluemethyst

License

Unlicense (public domain dedication)

Description

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.

Requirements

  • 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.

Usage

  1. After the program has been installed and the computer has restarted, it will prompt you to enter your OpenAI API key.
  2. Paste your API key when prompted. This step is required to authenticate your access to the OpenAI ChatGPT API.
  3. Once the API key is set, the program will display a randomly chosen title for the chatbot.
  4. Type your messages to have a conversation with the chatbot. Type 'exit' to exit the program.
  5. The chatbot will respond to your messages based on the conversation history and the underlying language model.
  6. Enjoy interacting with the ChatGPT-powered chatbot!

Note

  • 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.

Credits:

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

About

A fork of GPT.lua, a ChatGPT intergration in Minecraft using ComputerCraft, designed to work with AdvancedPeripherals ChatBox

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%