aumentato char-limit

This commit is contained in:
dado 2025-01-26 14:22:19 +01:00
parent 7fa688f340
commit 8a6d8c82a7

View File

@ -11,7 +11,7 @@ services:
test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py'] test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
mem_limit: 2g mem_limit: 2g
## Uncomment above command and define your args if necessary ## Uncomment above command and define your args if necessary
command: --ssl --ga-id MY-GA-ID --req-limit 100 --char-limit 500 command: --ssl --ga-id MY-GA-ID --req-limit 100 --char-limit 5000
## Uncomment this section and the libretranslate_api_keys volume if you want to backup your API keys ## Uncomment this section and the libretranslate_api_keys volume if you want to backup your API keys
environment: environment:
- LT_API_KEYS=true - LT_API_KEYS=true
@ -19,7 +19,6 @@ services:
## Uncomment these vars and libretranslate_models volume to optimize loading time. ## Uncomment these vars and libretranslate_models volume to optimize loading time.
- LT_UPDATE_MODELS=true - LT_UPDATE_MODELS=true
- LT_LOAD_ONLY=en,it - LT_LOAD_ONLY=en,it
- LT_CHAR_LIMIT=1200
volumes: volumes:
- libretranslate_api_keys:/app/db - libretranslate_api_keys:/app/db
# Keep the models in a docker volume, to avoid re-downloading on startup # Keep the models in a docker volume, to avoid re-downloading on startup
@ -33,4 +32,4 @@ volumes:
# creating the api key # creating the api key
# docker exec -it libretranslate bash # docker exec -it libretranslate bash
# let's create a key with permission to run 120 requests per minute. # let's create a key with permission to run 120 requests per minute.
# /app/venv/bin/ltmanage keys add 120 # /app/venv/bin/ltmanage keys add 120 --char-limit 5000