Update src/utils/translation/index.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
vlOd 2025-12-29 00:17:08 +02:00 committed by GitHub
parent ceecfc7a22
commit 9d63404783
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,7 +90,7 @@ class Translator {
let attempts = 0;
const errors: any[] = [];
while (!result && attempts < 3) {
while (!result && attempts < this.serviceCfg.maxRetryCount) {
try {
result = await this.service.translate(
content.text,