Initial commit: Image moderation service using local vision LLM

This commit is contained in:
2026-03-29 21:57:57 -04:00
commit 445970b7d4
9 changed files with 2888 additions and 0 deletions

11
.env.example Normal file
View File

@@ -0,0 +1,11 @@
PORT=8100
VISION_AI_URL=http://localhost:8000/v1/chat/completions
VISION_AI_MODEL=gemma3:4b
VISION_AI_TIMEOUT=90000
TILE_THRESHOLD=1024
# Callbacks when image is flagged unsafe
UPLOAD_SERVICE_REPLACE_URL=http://192.168.0.145:3003/internal/replace
UPLOAD_SERVICE_SECRET=<same as IMAGE_UPLOAD_SECRET on NAS>
PAROCHIA_CALLBACK_URL=https://parochia.org/api/images/moderation-callback
PAROCHIA_CALLBACK_SECRET=<same as MODERATION_CALLBACK_SECRET on NAS>