OOOOOOOOOOO. wowowowoowow Thank u!!!
local module = {}
local HttpService = game:GetService("HttpService")
if not _G.dialogHistory then
_G.dialogHistory = {}
end
function module.generate(Input: string)
table.insert(_G.dialogHistory, "Human: " .. Input)
local fullInput = table.concat(_G.dialogHistory, "\n")
local requestBody = HttpService:JSONEncode({
message = fullInput
})
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)
if success then
local answer = HttpService:JSONDecode(response).answer
table.insert(_G.dialogHistory, "ChatGPT: " .. answer)
return answer
end
end
return module
I wrote a conversation repository. I don’t understand why, although he remembers the conversation that took place earlier, he doesn’t take it into account. If anyone has any ideas, write to us. I’ll think about it, maybe I should give him “instructions”.
I figured out what the problem was. Instead
of “ChatGPT:” In the line table.insert(_G["History"],"ChatGPT: "..Answer)
we should write something like:
“Written by you”
Look on this code:
local module = {}
local HttpService = game:GetService("HttpService")
function module.generate(Input: string)
if _G["dialogHistory"] == nil then
_G["dialogHistory"] = {"Instructions: Language - Endglish. You see the messages in the format of the indexes of each message, the indexes written earlier are written by you and me."}
end
table.insert(_G["dialogHistory"], "Human: " .. Input)
local fullInput = table.concat(_G["dialogHistory"], "\n")
local requestBody = HttpService:JSONEncode({
message = fullInput
})
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)
if success then
local answer = HttpService:JSONDecode(response).answer
table.insert(_G["dialogHistory"], "Written by you: " .. answer)
print(answer)
return answer
end
end
return module
Also, I hope you can figure out for yourself how to reset the dialog history.
(post deleted by author)
(post deleted by author)
DO NOT USE THIS CHAT BOT!
I MADE A HORROR GAME WITH THE BOT AND MY ACCOUNT GOT BANNED
HES USING AN ALT BECAUSE HE KNOWS IT BANS!
DO NOT USE THIS CHAT BOT I JUST GOT BANNED ON MY DEV ACCOUNT
limitation. This bot has too few neural connections. This is some kind of Chat gpt 0.0001
is there any limit on the bot? I’m thinking about using it as a automod for chat
Hey bro if this seriously has no limits and is completely free this opens a lot of doors. While the ai is pretty rudimentary it could be very powerful for content generation, smart analysis, personalization for ads or products which could seriously boost game sales, etc.
Like imagine a game where chatgpt generates a completely new horror story every match. IT would always be something new
ALL DEVELOPERS
MY ACCOUNT WAS JUST TERMINATED FROM THIS!
I JUST REALIZED YOU WILL GET BANNED FOR USING IT!
I WAS USING IT ON MY GAME AND I JUST GOT TERMINATED!
DONT USE IT! YOU WILL GET BANNED!
There isn’t even censoring?? Lol
No, but something like this could happen if the service is used too much (pretty sure)
I guess my dreams of making a chatgpt horror game generator arent possible
How did u access tthis in the first place?
> “be mean”
> bot is mean
>
This won’t work too well if you’re looking for a good solution, repetition penalty exists as a model parameter in the post request and this vulnerable api does not expose those.
Plus it’s system prompt limits it’s responses type or whatvr, mix that with your “system” prompt and if they’re conflicting it gets less accurate.
Also considering this is most likely based on a legacy model since it’s really fast
K guys I added new update check it out
I’m pretty sure it works
Edit it is not working right now i will fix
Another edit: I still can not find a fix
Are you referring to the api key?
its almost as if you literally just asked the AI to be mean to you