SUSYUSTC / MathTranslate

translate scientific papers in latex, especially arxiv papers
https://github.com/SUSYUSTC/MathTranslate
Apache License 2.0
1.04k stars 69 forks source link

Tecent Engine #21

Closed Wodsk closed 1 year ago

Wodsk commented 1 year ago

How can I solve the problem when I use tecent engine and it reports like this:

tencentcloud.common.exception.tencent_cloud_sdk_exception.TencentCloudSDKException: [TencentCloudSDKException] code:RequestLimitExceeded message:您当前每秒请求 6 次,超过了每秒频率上限 5,请稍后重试。 requestId:bc0e30fe-037b-48ce-85a7-0376e0cff672

sherrylixuecheng commented 1 year ago

Hello Wodsk,

Thanks for using MathTranslate!

I checked the errorflag and found this is due to the request limit by Tencent Cloud (请求的次数超过了频率限制). The default request number per sec is 5 (默认接口请求频率限制:5次/秒)Please refer to their API doc on the request limits: https://cloud.tencent.com/document/product/551/32572

One possible solution is to follow the direction provided by TencentCloud to increase your limits. The other solution is we will need to try to make sure the requests generated by MathTranslate don't exceed their limits. I think this is possible, but we need some time to implement it. We will also follow up with your issue once this is done. Please stay tuned! BTW, I run the Tencent engine and didn't encounter any issue. Maybe you could just simply give it another shot, and hope your computer is not doing another excellent job by sending 6 requests per sec!

Best, sherrylixuecheng

SUSYUSTC commented 1 year ago

Which version of mathtranslate you are using? We should have already fixed this issue in version 2.0.3. You could try to upgrade it by pip install --upgrade mathtranslate first. Please let us know if you still have the same issue. Also we update this software quite frequently so it's good to always check update before using.

Wodsk commented 1 year ago

Thank you very much! I have upgraded software's version to 2.1.4 and translated paper sucessfully.