Skip to content

ichiroc/chatgpt2scratch

Repository files navigation

ChatGPT2Scratch

日本語

ChatGPT2Scratch is a Scratch extension that allows you to develop applications using OpenAI's ChatGPT through Scratch blocks.

https://ichiroc.github.io/chatgpt2scratch/

Usage

To use ChatGPT2Scratch:

  1. You need to obtain an API Key from the OpenAI website in advance.
  2. Open the official website.
  3. Open the "Choose an Extension" screen and select "ChatGPT2Scratch".
  4. Execute the "Set API Key" block first and set the API Key obtained from the OpenAI website.
  5. When you execute the "Get answer to ~" block, you can get a response from ChatGPT.

About API usage fees

ChatGPT2Scratch uses the gpt-4o-mini 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

https://openai.com/pricing

To find out how many tokens a given string will be, the following tool is useful.

https://platform.openai.com/tokenizer

For Developers

To run the ChatGPT2Scratch extension on your computer, follow these steps:

  1. Clone the scratch-gui repository:
git clone --depth 1 [email protected]:LLK/scratch-gui.git
cd scratch-gui
npm install
  1. 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
  1. Run npm start:
npm start

You can access it at http://localhost:8601.

License

ChatGPT2Scratch is licensed under AGPL 3.0. It is freely available for anyone to use and modify. However, if you make any modifications, you are required to share the source code.

Release Notes

https://github.com/ichiroc/chatgpt2scratch/releases

About

ChatGPT for Scratch

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •