OpenAI in Roblox - Answers from an AI!

New update!

Added Dark/Light theme.
Also made cooldowns functional and changed the cooldown from 30s to 10s.
Temperature is now random, for more answer diversity.
Added some padding and better UI look.
Added spatial voice too, it can be fun or something.
Game now has limited servers in order to limit requests for the server.


Hope you enjoy!

1 Like

Maybe the text should be white in dark theme but thank you for adding this.

1 Like

Hey there! I really enjoy this concept! Although for some reason the text always breaks and al doesn’t say anything so I have to reboot the game up?

Maybe lower this to like 5 seconds…

Oh yeah because its limited to 512 characters (or letters if you will).

I think 10 seconds is enough, just know that if a lot of people send requests at the same time, requests can be really fast

there are 4 server slots in the game for 10 players at the moment.
4*10 = 40 players

40 players sending 12 (each 5s) requests in a minute:
12*40 = 480 requests per minute. which is really high and can get rate limited, note that this is just for 40 players, imagine if more.

10 seconds however is reasonable and lets you time to think on what to prompt to the AI.

Thanks again for the feedback though!

1 Like

New update here folks! Quality of life improvements.

  • Mouse wheel, mouse lock were disabled
  • Character limit is shown at the top left corner
  • The Clear text button now available to erase the text if you need to ask other questions
  • Character limit increased to 800
  • Temperature is even more random for more varied answers
  • User is now warned when the text was filtered and could have confused the AI (this was not tested, please tell me if it works correctly)
  • Added mobile support (was not tested, please tell me if it works sucessfully)

Thanks again for those who gave feedback.
Have fun!

side note…
image

But open ai limit the amout of token you can use don’t they, so unless you pay for them, it’ll eventually runout or expire.

Nice stuff, I’ve also made a very similar “game” a few months ago, but I kept it private, and don’t plan on releasing it. Be careful with the token consumption, especially with this pretty high token limit, which could cost you a hell lot, and also don’t forget to submit the application to get your token limits raised for your game, takes two minutes and it can’t be an issue if you don’t…

Maybe there could be a Scrolling Frame so you could see the entire text

I noticed a flaw that can get your game moderated: According to Roblox’s TOS any user inputed text/third party text must be moderated using the TextService:FilterStringAsync feature. I see this is not the case and it can get your game moderated.

There are also OpenAI endpoints that can help you moderate this type of content. If you use their moderation endpoint you can help to remove these types of responses even though it would still break Roblox’s TOS since Roblox doesn’t trust devs to do their own filtering.

So, in conclusion, just use the roblox TextService:FilterStringAsync service.

3 Likes

I use the roblox filtering for the ai inputs but not the output, thanks for warning me about this.

2 Likes

I will try to look into that. I hadn’t tried on small screens (ex: mobile) so thanks for the feedback!

1 Like

Update:

  • All inputs/outputs get filtered through the TextService
  • Request Cooldown has been put to 10 → 15 seconds
  • Character limit set from 800 → 700

Also, I’ll be trying to figure out with how I can consume less tokens, but for now I’ll see how it will go. Thanks for the feedback.

EDIT: Game is now back to normal and filtering should be able to work properly. Sorry to those who joined while I was doing it!

Filtering does not seem to work

image

Can you say please, did you wrote this AI yourself, or it external?

1 Like

It’s External. OpenAi is open source and has an api. He scripted HttpRequests to Openai.com

1 Like

shit isn’t censored?

oh man. I really don’t know what to do then other than making an array full of cuss words… because I have filtering on it, I will try to dive into this. Thanks for feedback!

Use the original Roblox chat filter ig.