-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deeplx是否可以支持同时填入多个API #114
Comments
糊了个deeplx代理,如果能实现这种效果最好,不然一个API经常会遇到查询太快没有响应的情况 |
可以做个对url轮寻,问题不大。失败重试也可以,不过可能需要接口在失败时返回非200状态码,这样比较好处理。 |
没有linux.do的帐号,看不到你发的链接内容。 |
|
更新了下代码,之前是查询十次,直到获得翻译结果。现在是开3个任务并发查询,有一个返回就拿到翻译结果了
|
并发的缺点是,会使得翻译接口更容易达到频次限制。 |
v1.8.8 将支持deeplx的多url轮寻,不过写死了3次重试,如果连续3个url都返回错误将翻译失败。 |
https://linux.do/t/topic/60749
如帖子中提到的,沉浸式翻译支持在api处填入以逗号分隔的多个api
但是沉浸式翻译的实现可能有点问题
翻译的时候轮询这些api,如果第一次翻译失败会自动用下一个api再尝试一次
The text was updated successfully, but these errors were encountered: