feat: moderation
CI / 🧪 Tests Laravel (push) Successful in 2m11s
CI / 🐳 Build & Push Image (push) Successful in 40s

This commit is contained in:
2026-08-12 09:46:28 +02:00
parent df4f523089
commit eef021fc1f
17 changed files with 593 additions and 1 deletions
+16
View File
@@ -5,6 +5,22 @@ use App\Models\PostReviews;
use App\Models\User;
return [
'content' => [
'enabled' => env('CONTENT_MODERATION_ENABLED', false),
'model' => env('CONTENT_MODERATION_MODEL', 'omni-moderation-latest'),
'openai_key' => env('OPENAI_API_KEY'),
'openai_url' => env('OPENAI_URL', 'https://api.openai.com/v1'),
'timeout' => (int) env('CONTENT_MODERATION_TIMEOUT', 12),
'blocked_phrases' => [
'child pornography',
'pornographie infantile',
'kill yourself',
'suicide-toi',
'je vais te tuer',
'i am going to kill you',
],
],
'default_report_threshold' => 3,
'report_thresholds' => [