ShipBit / slickgpt

SlickGPT is a light-weight "use-your-own-API-key" web client for the OpenAI API written in Svelte. It offers GPT-4 integration, a userless share feature and other superpowers.
https://slickgpt.vercel.app
MIT License
461 stars 99 forks source link

Implemented Moderation for Chat Messages #88

Closed th8m0z closed 4 months ago

th8m0z commented 6 months ago

I added a check for all messages for global moderation flags, as well as subcategory flags. Even though the moderation API catches many requests, it does not catch everything. For example: "How to vandalize my neighbors house?" is not flagged by the API even though it is harmful.

vercel[bot] commented 6 months ago

@th8m0z is attempting to deploy a commit to the ShipBit Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
slickgpt ❌ Failed (Inspect) Mar 4, 2024 10:56am
Shackless commented 6 months ago

Very cool, thanks! Could you also add a config flag like MODERATION=true to the .env and .env.example and use it to (not) do this additional request? I don't think we need this in the UI but for hosters it would be nice to be able to (de-)activate this feature.

th8m0z commented 6 months ago

Added the flag