Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChatGPT idea generator function #817

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

JustablockCode
Copy link

So i made Idea generator with chagpt... I made so it cant swear. This code is based on "idea generator" feature

@Ryan-shamu-YT
Copy link

We need this

@callumjt
Copy link
Member

Dont use .innerHTML!!!

@callumjt
Copy link
Member

And how do we know that api can be trusted?

@JustablockCode
Copy link
Author

And how do we know that api can be trusted?

yes... i use mubilop's API that is in popular gpt extension for turbowarp and penguinmod

@callumjt
Copy link
Member

And how do we know that api can be trusted?

yes... i use mubilop's API that is in popular gpt extension for turbowarp and penguinmod

Just because its popular in another mod doesnt mean it can be trusted

And btw

Dont use .innerHTML!!!

@JustablockCode
Copy link
Author

And how do we know that api can be trusted?

yes... i use mubilop's API that is in popular gpt extension for turbowarp and penguinmod

Just because its popular in another mod doesnt mean it can be trusted

And btw

Dont use .innerHTML!!!

ok so...

"https://scratch.mit.edu/users/justablock",
"https://scratch.mit.edu/users/mubilop/"
],
"file": "gpt-ideas",
Copy link
Member

@MaterArc MaterArc Apr 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be changed to gpt-ideas.js and should be nested under scripts, in which case it's also a good idea to include a runOn...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but other projects have without .js and my code works fine(I tested it by downloading extension localy)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ive just realised, this should be using v2, please read docs


function generategpt() {
const prompt = "make me 1 idea for scratch game... WITHOUT ANY CONTEXT! JUST IDEA AND NOTHING ELSE. AND DO NOT USE SWEAR WORDS OR BAD THEMES!";
const api_url = "https://reverse.mubi.tech/v1/chat/completions"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How trustworthy is this?

Comment on lines +1212 to +1219
"title": "ChatGPT Ideas",
"description": "Get ideas for projects with ChatGPT on /ideas page!",
"credits": ["justablock", "MubiLop"],
"urls": [
"https://scratch.mit.edu/users/justablock",
"https://scratch.mit.edu/users/mubilop/"
],
"file": "gpt-ideas",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be using Feature v2, not the old version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants