Sp_ceYT

Sp_ceYT

I want to implant ChatGPT into my roblox game, but how?

(Client / Local Script)

Error: “Unrecognized request option url”

game.Players.PlayerAdded:Connect(function(player) --Whenever a player joins
	player.Chatted:Connect(function(message) --When a player messages
		local HttpService = game:GetService("HttpService")
		local Success, Err = pcall(function()
			Request = HttpService:RequestAsync(
				{
					url = "https://api.openai.com/v1/completions/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",
					method = "GET",
					Headers = {
						["type"] = "application/json",
						["message"] = message,
						["id"] = "",
						["name"] = "Chatbot"
					},
				}
			)
		end)
		if not(Success)then --if error
			warn(Err)
		else --if sucess
			print(Request.Body)
		end
	end)
end)

Where Next?

Popular Windows topics Top

mikel
Hi. I’m new in WFP (Windows filtering platform) and I have some questions. I want to create iptables new, established and related rules...
New
Sp_ceYT
(Client / Local Script) Error: “Unrecognized request option url” game.Players.PlayerAdded:Connect(function(player) --Whenever a player ...
New
caravani0
Hello, all. I am excusing myself beforehand for the not Qt-related question but still, I know that your expertise extends a lot further ...
New
Mclovin7450
Hello Friends, I am in IT support at an institute. I have a query in our office, since we have more than 100 computers, we must prepare ...
New
Nurlan
Hello. My name is Nurlan, I’m from Kazakhstan. I need the community’s help: I’ve found myself trapped and have been unable to escape fo...
New

Other popular topics Top

DevotionGeo
I know that these benchmarks might not be the exact picture of real-world scenario, but still I expect a Rust web framework performing a ...
New
AstonJ
There’s a whole world of custom keycaps out there that I didn’t know existed! Check out all of our Keycaps threads here: https://forum....
New
PragmaticBookshelf
Rust is an exciting new programming language combining the power of C with memory safety, fearless concurrency, and productivity boosters...
New
New
Maartz
Hi folks, I don’t know if I saw this here but, here’s a new programming language, called Roc Reminds me a bit of Elm and thus Haskell. ...
New
AstonJ
We’ve talked about his book briefly here but it is quickly becoming obsolete - so he’s decided to create a series of 7 podcasts, the firs...
New
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
New
PragmaticBookshelf
Develop, deploy, and debug BEAM applications using BEAMOps: a new paradigm that focuses on scalability, fault tolerance, and owning each ...
New
AstonJ
If you’re getting errors like this: psql: error: connection to server on socket “/tmp/.s.PGSQL.5432” failed: No such file or directory ...
New