deepl translate plugin for text-generation-webui,reference:
- deepl website: https://www.deepl.com/translator
- text-generation-webui: https://github.com/oobabooga/text-generation-webui
- clone this repo to the extensions folder of text-generation-webui
- cd this repo folder and run
pip install -r requirements.txt
to install the deepl package
when start the text-generation-webui, using following to enable this plugin:
--extension deepl_translate
- active this plugin
DEEPL_USER_LANG_CODE
- user input language code(only support EN-US
, JA
, ZH
, default is ZH
)
DEEPL_BOT_LANG_CODE
- the model's language code(only support EN-US
, JA
, ZH
, default is EN-US
)
DEEPL_AUTH_KEY
- the deepl auth key
this plugin will:
- translate the model response to
DEEPL_USER_LANG_CODE
- translate you input and prompt to
DEEPL_BOT_LANG_CODE
export DEEPL_AUTH_KEY=xxx && \
export DEEPL_USER_LANG_CODE=ZH && \
export DEEPL_BOT_LANG_CODE=EN-US && \
python server.py