mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-15 09:01:48 +02:00
🔥 Remove moderation init logs
This commit is contained in:
parent
b1a86769b2
commit
c37ce625e3
1 changed files with 0 additions and 21 deletions
|
@ -3,27 +3,6 @@ import { env } from "@/env";
|
||||||
import { moderateContentWithAI } from "./libs/ai-moderation";
|
import { moderateContentWithAI } from "./libs/ai-moderation";
|
||||||
import { containsSuspiciousPatterns } from "./libs/pattern-moderation";
|
import { containsSuspiciousPatterns } from "./libs/pattern-moderation";
|
||||||
|
|
||||||
/**
|
|
||||||
* Log the moderation status at initialization
|
|
||||||
* This function is automatically called when this module is imported
|
|
||||||
*/
|
|
||||||
function initModeration() {
|
|
||||||
if (env.MODERATION_ENABLED === "true") {
|
|
||||||
if (env.OPENAI_API_KEY) {
|
|
||||||
console.info("✅ Content moderation is ENABLED with AI support");
|
|
||||||
} else {
|
|
||||||
console.info(
|
|
||||||
"⚠️ Content moderation is ENABLED but missing OPENAI_API_KEY - AI moderation will be skipped",
|
|
||||||
);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
console.info("ℹ️ Content moderation is DISABLED");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Initialize moderation and log status
|
|
||||||
initModeration();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Moderates content to detect spam, inappropriate content, or abuse
|
* Moderates content to detect spam, inappropriate content, or abuse
|
||||||
* Uses a two-layer approach:
|
* Uses a two-layer approach:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue