Skip to content
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

功能建议:增加翻译服务的私有API接口 #24

Closed
ViGeng opened this issue Mar 5, 2023 · 12 comments
Closed

功能建议:增加翻译服务的私有API接口 #24

ViGeng opened this issue Mar 5, 2023 · 12 comments
Labels
enhancement New feature or request good first issue Good for newcomers PR wanted

Comments

@ViGeng
Copy link

ViGeng commented Mar 5, 2023

功能描述

类似bob,可以提供私有API的调用,这样提供的翻译服务质量应该会更好一点(无论从精确度上还是调用次数上)

image

感谢聆听!

@ViGeng ViGeng added the enhancement New feature or request label Mar 5, 2023
@ViGeng
Copy link
Author

ViGeng commented Mar 5, 2023

可以加个donate,不能总用爱发电

@tisfeng
Copy link
Owner

tisfeng commented Mar 5, 2023

感谢反馈,这个功能后面会做,目前开发人手不足,一步步来 😤

@tisfeng tisfeng added the good first issue Good for newcomers label Mar 5, 2023
@tisfeng
Copy link
Owner

tisfeng commented Mar 5, 2023

可以加个donate,不能总用爱发电

我考虑一下,确实,大部份开源都是用爱发电 😔

@tisfeng
Copy link
Owner

tisfeng commented Apr 28, 2023

新版本优化了 DeepL 翻译,体验上已经接近官方 API。

DeepL 作为我常用翻译服务之一,但它网页免费版有频率限制,这点很烦,所以我增加了对 DeepL 官方 API 支持,暂时还没写界面,需要通过命令方式启用。

在输入框输入下面代码,xxx 是你的 DeepL AuthKey,然后 enter

easydict://writeKeyValue?EZDeepLAuthKey=xxx

默认是使用免费版网页 API,在网页 API 失败时会使用个人的 AuthKey (如果有)


如果你想优先使用个人的 AuthKey 也行

easydict://writeKeyValue?EZDeepLTranslationAPIKey=1

或只使用 个人 AuthKey

easydict://writeKeyValue?EZDeepLTranslationAPIKey=2

@tyhunter
Copy link

可以考虑下像这个bob的插件一样,支持deepl的接口域名吗
https://github.com/clubxdev/bob-plugin-deeplx
原因是现在个人的API没有外币信用卡无法购买,只能通过之前大佬遗留的Docker自建一个接口,但它提供的网页版的接口,不是APIKEY的形式

@tisfeng
Copy link
Owner

tisfeng commented Jun 14, 2023

可是可以,但目前 Easydict 本身就支持免费的 DeepL 接口,虽然有频率限制,但本质上和这个项目 https://github.com/OwO-Network/DeepLX 是一样的,而且还不用自己去本地部署。 还是说你目前使用遇到了什么问题吗?

考虑到 DeepL 的律师函警告,未来 Easydict 可能会移除默认免费的网页版接口,也改成这种由用户手动部署本地接口方式,但那是后话了。

@tyhunter
Copy link

@tisfeng
感谢大佬的耐心回复,我遇到的问题是这两天deepl返回翻译结果时,一直会遇到429 too many request的报错,有时候需要多试几次才能返回结果,感觉应该还是公共API接口同时受到了太多请求导致的

@tisfeng
Copy link
Owner

tisfeng commented Jun 15, 2023

429 没什么办法,这是因为 DeepL 免费版网页 API 对用户的 IP 有频率限制,如果你没有自己的 key,可以通过切换代理 IP 的方式规避。

@akring
Copy link

akring commented Jul 31, 2023

看了一下百度的 API,作者是直接用了「文本翻译-词典版」的付费接口吗?那真的是用爱发电了

@tisfeng
Copy link
Owner

tisfeng commented Aug 1, 2023

没,这里用的是百度网页版 API,里面带词典信息,之前百度的词典 API 还需要企业申请认证 😓

倒是 Raycast-Easydict 的百度翻译是官方 API,用的是我自己的 key。

@tisfeng tisfeng added PR wanted and removed feat labels Nov 29, 2023
@Jerry23011
Copy link
Collaborator

这个 issue 现在是不是算已经完成了呢

@tisfeng
Copy link
Owner

tisfeng commented Aug 27, 2024

确实,目前大部分服务都支持了官方 API,只剩 Google 和 微软的 Azure 翻译。

先关闭了这个 issue,后面有需求,再单独提 issue。

@tisfeng tisfeng closed this as completed Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers PR wanted
Projects
None yet
Development

No branches or pull requests

5 participants