Add AI extension by KimosFrontender#2545
Closed
kms413 wants to merge 2 commits into
Closed
Conversation
Author
|
!format |
Contributor
|
This can't me merged in accordance with the contributing guidlines. It relies on user-generated API keys stored in the project which is a major security concern and would allow anyone to retrieve the API key and bill the creator's credit card. Additionally, it also seems to rely on numerous third-parties, which may or may not be available depending on the internet connection or network configuration Honestly, the only way I could see an AI chatbot actually being merged is if it runs offline, locally on the machine (no API key) via WebGPU, such as the following: https://huggingface.co/spaces/webml-community/gemma-4-webgpu-kernels |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Statement on AI Use
The code in this extension was partially drafted with the help of AI (DeepSeek) to accelerate development. All AI-generated portions have been thoroughly reviewed, tested, and fixed by human developers. I take full responsibility for the final code, which has been validated through multiple rounds of testing to ensure correctness, security, and compliance with the specification.
Description
Add a new
AIextension that allows Scratch projects to chat with AI models using OpenAI-compatible and Anthropic-compatible APIs, with full streaming response support.Extension Details
aiKimosFrontender/aiFeatures
Blocks Overview
Files Included
extensions/KimosFrontender/ai.jsimages/KimosFrontender/ai.svgsamples/Ai.sb3Checklist
MIT)extensions/extensions.jsonNotes
Scratch.fetch()API for making HTTP requestsAuthorization: Bearerfor OpenAI,x-api-keyfor Anthropic)