Add HF model auto-download with configurable AI env, and share link visibility toggles

This commit is contained in:
dev
2026-09-11 13:12:13 +03:00
parent b7e798b867
commit 275ed46dfb
17 changed files with 365 additions and 67 deletions
+10 -16
View File
@@ -29,6 +29,8 @@ services:
DATABASE_URL: postgres://app:${DB_PASSWORD}@db:5432/whereldo
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
ADMIN_USERNAME: ${ADMIN_USERNAME:-admin}
AI_MODEL: ${AI_MODEL:-qwen2.5-1.5b-instruct-q4_k_m.gguf}
AI_PROMPT: ${AI_PROMPT:-}
NODE_ENV: production
TZ: Europe/Moscow
depends_on:
@@ -65,28 +67,20 @@ services:
container_name: text-corrector
restart: unless-stopped
entrypoint: ["/bin/sh", "/start-text-corrector.sh"]
environment:
AI_MODEL: ${AI_MODEL:-qwen2.5-1.5b-instruct-q4_k_m.gguf}
AI_MODEL_REPO: ${AI_MODEL_REPO:-Qwen/Qwen2.5-1.5B-Instruct-GGUF}
HUGGINGFACE_TOKEN: ${HUGGINGFACE_TOKEN:-}
volumes:
- ./models:/models
- ./start-text-corrector.sh:/start-text-corrector.sh:ro
ports:
- "8080:8080"
command:
- -m
- /models/qwen2.5-1.5b-instruct-q4_k_m.gguf
- --host
- 0.0.0.0
- --port
- "8080"
- -c
- "4096"
- -n
- "256"
- -t
- "8"
- --temp
- "0.1"