Skip to content

Commit

Permalink
Update chatgpt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
popcion authored Dec 31, 2024
1 parent 415b539 commit 0b28d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manga_translator/translators/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class GPT3Translator(CommonTranslator):
'THA': 'Thai',
'IND': 'Indonesian'
}
_INVALID_REPEAT_COUNT = 2 # repeat up to 2 times if "invalid" translation was detected
_INVALID_REPEAT_COUNT = 0 # useless
_MAX_REQUESTS_PER_MINUTE = 20
_TIMEOUT = 40 # Seconds to wait for a response from the server before retrying
_RETRY_ATTEMPTS = 3 # Number of times to retry an errored request before giving up
Expand Down

0 comments on commit 0b28d91

Please sign in to comment.