feat: moderation
This commit is contained in:
@@ -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' => [
|
||||
|
||||
Reference in New Issue
Block a user