diff --git a/modules/main.py b/modules/main.py index 2808975..84dbf0f 100644 --- a/modules/main.py +++ b/modules/main.py @@ -14,7 +14,9 @@ from modules.json import handleJSON from modules.kansen import handleKansen from modules.lune import handleLune -THREADS = 5 # For GPT4 rate limit will be hit if you have more than 1 thread. +# For GPT4 rate limit will be hit if you have more than 1 thread. +# 1 Thread for each file. Controls how many files are worked on at once. +THREADS = 5 # Info Message tqdm.write(Fore.LIGHTYELLOW_EX + "WARNING: Once a translation starts do not close it unless you want to lose your\ diff --git a/modules/rpgmakerace.py b/modules/rpgmakerace.py index 382379d..d20f0c8 100644 --- a/modules/rpgmakerace.py +++ b/modules/rpgmakerace.py @@ -25,7 +25,7 @@ openai.api_key = os.getenv('key') INPUTAPICOST = .002 # Depends on the model https://openai.com/pricing OUTPUTAPICOST = .002 PROMPT = Path('prompt.txt').read_text(encoding='utf-8') -THREADS = 10 +THREADS = 10 # Controls how many threads are working on a single file (May have to drop this) LOCK = threading.Lock() WIDTH = 50 LISTWIDTH = 90 diff --git a/modules/rpgmakermvmz.py b/modules/rpgmakermvmz.py index d2e8c8b..7610d32 100644 --- a/modules/rpgmakermvmz.py +++ b/modules/rpgmakermvmz.py @@ -24,7 +24,7 @@ openai.api_key = os.getenv('key') INPUTAPICOST = .002 # Depends on the model https://openai.com/pricing OUTPUTAPICOST = .002 PROMPT = Path('prompt.txt').read_text(encoding='utf-8') -THREADS = 10 +THREADS = 10 # Controls how many threads are working on a single file (May have to drop this) LOCK = threading.Lock() WIDTH = 50 LISTWIDTH = 90