ChatGPT2Scratch is a Scratch extension that allows you to develop applications using OpenAI's ChatGPT through Scratch blocks.
https://ichiroc.github.io/chatgpt2scratch/
To use ChatGPT2Scratch:
- You need to obtain an API Key from the OpenAI website in advance.
- Open the official website.
- Open the "Choose an Extension" screen and select "ChatGPT2Scratch".
- Execute the "Set API Key" block first and set the API Key obtained from the OpenAI website.
- When you execute the "Get answer to ~" block, you can get a response from ChatGPT.
ChatGPT2Scratch uses the gpt-3.5-turbo model of OpenAI's API.
There is a fee for using OpenAI's API. Each input and output string is broken down into units called tokens, and a fee is charged per token.
For more information, please see the following page
To find out how many tokens a given string will be, the following tool is useful.
https://platform.openai.com/tokenizer
To run the ChatGPT2Scratch extension on your computer, follow these steps:
- Clone the scratch-gui repository:
git clone --depth 1 [email protected]:LLK/scratch-gui.git
cd scratch-gui
npm install
- Clone the chatgpt2scratch repository (this repository):
Run the following commands in the scratch-gui directory.
git clone [email protected]:ichiroc/chatgpt2scratch.git
sh chatgpt2scratch/install.sh
- Run npm start:
npm start
You can access it at http://localhost:8601.