Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
luzov authored Oct 13, 2024
1 parent d40bd93 commit b4a96a6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,25 @@
```
docker run -d --name deeplx -p 11888:11888 -e TOKEN=your_token -e DL_SESSION=your_session yucn/deeplx:latest
```
deeplx pro2api:
>http(s)://<your_domian>/<dl_session>/v1/translate
这里提供下我自己搭的服务:
>https://deeplx-pro-api.itisu.me/d45074b4-5bb0-4756-9105-e05082b05c57/v1/translate
如果发现dl_session不可用,直接替换即可。

Hoppscotch 调试,查看返回字段中 method 为 Pro 即为 Pro2api:
[![Run in Hoppscotch](https://hopp.sh/badge.svg)](https://hopp.sh/r/aRC6qU5GNlHZ)

```json
{
"alternatives": null,
"code": 200,
"data": "Hello, world. What a beautiful day.",
"id": 8339335001,
"method": "Pro",
"source_lang": "AUTO",
"target_lang": "EN"
}
```

0 comments on commit b4a96a6

Please sign in to comment.