Browse Source

doc: deeplx

Byaidu 1 year ago
parent
commit
3ec90bce00
2 changed files with 4 additions and 4 deletions
  1. 1 1
      README.md
  2. 3 3
      README_zh-CN.md

+ 1 - 1
README.md

@@ -206,7 +206,7 @@ pdf2zh example.pdf -li en -lo ja
 
   See [DeepLX](https://github.com/OwO-Network/DeepLX)
 
-  Set ENVs to construct an endpoint like: `{DEEPL_SERVER_URL}/translate`
+  Set ENVs to construct an endpoint like: `{DEEPLX_SERVER_URL}/{DEEPLX_AUTH_KEY}/translate`
   - `DEEPLX_SERVER_URL` (Optional), e.g., `export DEEPLX_SERVER_URL=https://api.deeplx.org`
   - `DEEPLX_AUTH_KEY`, e.g., `export DEEPLX_AUTH_KEY=xxx`
 

+ 3 - 3
README_zh-CN.md

@@ -207,13 +207,13 @@ pdf2zh example.pdf -s deepl
 
 参考 [DeepLX](https://github.com/OwO-Network/DeepLX)
 
-设置环境变量构建接入点:`{DEEPLX_SERVER_URL}/translate`
+设置环境变量构建接入点:`{DEEPLX_SERVER_URL}/{DEEPLX_AUTH_KEY}/translate`
 
-- `DEEPLX_SERVER_URL`(可选), e.g., `export DEEPLX_SERVER_URL=https://api.deepl.com`
+- `DEEPLX_SERVER_URL`(可选), e.g., `export DEEPLX_SERVER_URL=https://api.deeplx.org`
 - `DEEPLX_AUTH_KEY`, e.g., `export DEEPLX_AUTH_KEY=xxx`
 
 ```bash
-pdf2zh example.pdf -s deepl
+pdf2zh example.pdf -s deeplx
 ```
 
 - **Ollama**