ChatGPT module (no key required)

I found this API that lets you make requests to ChatGPT and get responses back for free so yeah I turned that into a module

BTW sometimes it says something about a word limit and it can’t remember past messages (only direct input and output)

ChatGPT.rbxm (992 Bytes)

To use it you just do

require(module).generate("foo")

Here are some screenshots

54 Likes

Very good job, Looks very good

2 Likes

Does the website use their own AI or ChatGPT?

3 Likes

I think they use ChatGPT there is a low chance they would make their own

3 Likes

It’s a cool alternative to use in small projects instead of paying chatgpt :fire:

3 Likes

Roblox’s gonna get sued by that ngl

6 Likes

The code so you don’t need to download anything:

local module = {}
local HttpService = game:GetService("HttpService");

function module.generate(Input : string)
	local requestBody = HttpService:JSONEncode({
		message = Input
	})

	local success, response = xpcall(function()
		return HttpService:PostAsync("https://internet.com:8000/messages", requestBody, Enum.HttpContentType.ApplicationJson)
	end, function(a)
		warn("Error generating message:", a)
	end)

	return success and HttpService:JSONDecode(response).answer
end

return module
13 Likes

Yeah giving people the code instead of a module would have been a better idea

Thanks though

4 Likes

Why would roblox get sued for that

2 Likes

https://internet.com:8000/messages

Interesting, how did you even find this endpoint lmao

1 Like

I was just looking through the website’s html and I found it lol

1 Like

Funny, it actually works! And it’s free lol, I love it!1!! :+1:

3 Likes

Sad, there is a limit.

1 Like

image
Love it

12 Likes

Because they are not paying for it. I don’t think Roblox will be sued, but @ChatGGPT may get in trouble.

2 Likes

It would be mostly the website that gets un trouble. We are only the users.

3 Likes

More like a internet.com problem

2 Likes

Quite fun and useful. Also, it was about time we got something like this, thx

1 Like

Created a simple chat system using my UI library.

It also supports coloring code blocks and multiple messages (it remembers previous messages):

Really nice and easy to use :+1:

2 Likes