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
:createCompletion(prompt, temperature, topP)
prompt - Set prompt you want to ask the AI temperature - Effectively tune how random responses are, default 0 topP - Effectively tune responses, alter temperature or top_p not both
player - Instance of the player message - Message to send to the AI
-- Require the correct path
local OpenAIChat = require(script.Parent["OpenAIChat v1"]);
-- Asking what's 2+2?
warn(OpenAIChat:createChatCompletion("What is 2+2?"))
-- Having a conversation with the AI
Have any questions or inquiries? Feel free to join the DTRDSupport 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)
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.