windingwind / zotero-pdf-translate

Translate PDF, EPub, webpage, metadata, annotations, notes to the target language. Support 20+ translate services.
GNU Affero General Public License v3.0
6.15k stars 304 forks source link

[Feature]添加批量翻译等待时间 #460

Closed lyk7539511 closed 10 months ago

lyk7539511 commented 1 year ago

Is your feature request related to a problem? Please describe. 当使用gpt作为翻译引擎时,OpenAI官方对于API的请求频率有限制,每分钟不超过3次,因此如果批量翻译标题或摘要的时候就会出现脚本自动跳过超时未反应的翻译内容,从而造成翻译遗漏的情况。

Describe the solution you'd like 请求在批量翻译标题等类似任务时添加等待时间以避免自动跳过,或者限制每两次翻译的间隔时间。

windingwind commented 1 year ago

欢迎pr。可在设置中增加一个选项。目前间隔时间是写死的1s

lyk7539511 commented 1 year ago

好的。 我没有使用过TS,也没写过zotero的插件,所以还需要时间看,请暂时先不要关这个issue,谢谢

Geo123abc commented 9 months ago

可以考虑支持多个gpt账号做负载均衡

沉浸式翻译扩展支持多个 API Key 负载均衡, 请在填写的时候用英文逗号 , 分隔不同的 key 来自

ASC8384 commented 3 weeks ago

请问能否提供自定义超时时限的选项? 用的是自建服务,在翻译长文本上可能有点满。