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)

Popular Windows topics Top

First poster: bot
This post contains opinions. They may differ from the opinions you hold, and that’s great. This post is not targeted at any individual pe...
New
First poster: davearonson
Microsoft says it will stop supporting Windows 10 in 2025, as it prepares to unveil a major revamp of its Windows operating system later ...
New
New
New
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
hilfordjames
There appears to have been an update that has changed the terminology for what has previously been known as the Taskbar Overflow - this h...
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

axelson
I’ve been really enjoying obsidian.md: It is very snappy (even though it is based on Electron). I love that it is all local by defaul...
New
dasdom
No chair. I have a standing desk. This post was split into a dedicated thread from our thread about chairs :slight_smile:
New
PragmaticBookshelf
Rust is an exciting new programming language combining the power of C with memory safety, fearless concurrency, and productivity boosters...
New
New
PragmaticBookshelf
“Finding the Boundaries” Hero’s Journey with Noel Rappin @noelrappin Even when you’re ultimately right about what the future ho...
New
AstonJ
If you are experiencing Rails console using 100% CPU on your dev machine, then updating your development and test gems might fix the issu...
New
PragmaticBookshelf
Author Spotlight Erin Dees @undees Welcome to our new author spotlight! We had the pleasure of chatting with Erin Dees, co-author of ...
New
husaindevelop
Inside our android webview app, we are trying to paste the copied content from another app eg (notes) using navigator.clipboard.readtext ...
New
PragmaticBookshelf
Author Spotlight: Karl Stolley @karlstolley Logic! Rhetoric! Prag! Wow, what a combination. In this spotlight, we sit down with Karl ...
New
First poster: bot
zig/http.zig at 7cf2cbb33ef34c1d211135f56d30fe23b6cacd42 · ziglang/zig. General-purpose programming language and toolchain for maintaini...
New