diff --git a/src/main/java/icu/samnyan/aqua/net/Safety.kt b/src/main/java/icu/samnyan/aqua/net/Safety.kt index 33c629c8..da6636c2 100644 --- a/src/main/java/icu/samnyan/aqua/net/Safety.kt +++ b/src/main/java/icu/samnyan/aqua/net/Safety.kt @@ -57,7 +57,7 @@ class AquaNetSafetyService( val map = safety.findAll().associateBy { it.content.lowercase().trim() }.toMutableMap() // Process unseen content with OpenAI - val news = contents.filter { it.lowercase().trim() !in map }.map { inp -> + val news = contents.filter { it.lowercase().trim() !in map && it !in contents }.map { inp -> HTTP.post("https://api.openai.com/v1/moderations") { header("Authorization", "Bearer ${openAIConfig.apiKey}") header("Content-Type", "application/json")