Greetings! As Robots start to expand, and coming out with more creative and innovative ways to work, I’ve decided to make a nifty module simply for the API.
message - The message you want to send, with a configurable array to have your AI do exactly what you please! (found in the module, line 40 roleTbl) temperature - Effectively tune how random responses are, default 0 topP - Effectively tune responses, alter temperature or top_p not both
:conversate(player, message)
player - Instance of the player message - Message to send to the AI
Example Usage
-- Require the correct path
local OpenAIChat = require(script.Parent["OpenAIChat v1.1"]);
local chat = OpenAIChat.new()
-- Asking what's 2+2?
warn(chat:createChatCompletion("What is 2+2?"))
-- Having a conversation with the AI
game:GetService("Players").PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
warn(chat:conversate(plr, msg));
end)
end)
Support Server
Have any questions or inquiries? Feel free to join the DevelopmentSupport Server
I think you called it as a function rather as a method
OpenAIChat.conversate(player, message) -- incorrect (whats going on in your script)
OpenAIChat.conversate(self, player, message) -- correct (what it should be)
-- or
OpenAIChat:conversate(player, message) -- syntatic sugar (the correct way)
Of course there’s millions of resources for it, however my goal is to be better than others. Not to mention I released this same day GPT-3.5 was available to the public.
Now if you’re seeing the resources and seeing almost the same function names, it’s because we’re utilizing the documentation. There’s no problem with users contributing an asset as long as they enjoy it and optionally is better than others.