mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
Update src/utils/translation/index.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
ceecfc7a22
commit
9d63404783
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue