diff --git a/.env.example b/.env.example index 657b683..a59c906 100644 --- a/.env.example +++ b/.env.example @@ -4,4 +4,6 @@ proxy="" model="" timeout="" fileThreads="" -threads="" \ No newline at end of file +threads="" +width="" +listWidth="" \ No newline at end of file diff --git a/modules/alltext.py b/modules/alltext.py index 9f7c541..defd384 100644 --- a/modules/alltext.py +++ b/modules/alltext.py @@ -28,8 +28,8 @@ APICOST = .002 # Depends on the model https://openai.com/pricing PROMPT = Path('prompt.txt').read_text(encoding='utf-8') THREADS = int(os.getenv('threads')) # For GPT4 rate limit will be hit if you have more than 1 thread. LOCK = threading.Lock() -WIDTH = 60 -LISTWIDTH = 60 +WIDTH = int(os.getenv('width')) +LISTWIDTH = int(os.getenv('listWidth')) MAXHISTORY = 10 ESTIMATE = '' TOTALCOST = 0 diff --git a/modules/csv.py b/modules/csv.py index 6fd6bf5..1a662e4 100644 --- a/modules/csv.py +++ b/modules/csv.py @@ -28,7 +28,7 @@ APICOST = .002 # Depends on the model https://openai.com/pricing PROMPT = Path('prompt.txt').read_text(encoding='utf-8') THREADS = int(os.getenv('threads')) LOCK = threading.Lock() -WIDTH = 60 +WIDTH = int(os.getenv('width')) MAXHISTORY = 10 ESTIMATE = '' TOTALCOST = 0 diff --git a/modules/json.py b/modules/json.py index b1a61dd..def8baa 100644 --- a/modules/json.py +++ b/modules/json.py @@ -28,8 +28,8 @@ OUTPUTAPICOST = .002 PROMPT = Path('prompt.txt').read_text(encoding='utf-8') THREADS = int(os.getenv('threads')) # Controls how many threads are working on a single file (May have to drop this) LOCK = threading.Lock() -WIDTH = 50 -LISTWIDTH = 90 +WIDTH = int(os.getenv('width')) +LISTWIDTH = int(os.getenv('listWidth')) NOTEWIDTH = 50 MAXHISTORY = 10 ESTIMATE = '' diff --git a/modules/kansen.py b/modules/kansen.py index ecb0b21..a48bbe3 100644 --- a/modules/kansen.py +++ b/modules/kansen.py @@ -26,8 +26,8 @@ APICOST = .002 # Depends on the model https://openai.com/pricing PROMPT = Path('prompt.txt').read_text(encoding='utf-8') THREADS = int(os.getenv('threads')) # For GPT4 rate limit will be hit if you have more than 1 thread. LOCK = threading.Lock() -WIDTH = 60 -LISTWIDTH = 60 +WIDTH = int(os.getenv('width')) +LISTWIDTH = int(os.getenv('listWidth')) MAXHISTORY = 10 ESTIMATE = '' TOTALCOST = 0 diff --git a/modules/lune.py b/modules/lune.py index 3ea904a..77c322a 100644 --- a/modules/lune.py +++ b/modules/lune.py @@ -28,8 +28,8 @@ OUTPUTAPICOST = .002 PROMPT = Path('prompt.txt').read_text(encoding='utf-8') THREADS = int(os.getenv('threads')) # Controls how many threads are working on a single file (May have to drop this) LOCK = threading.Lock() -WIDTH = 50 -LISTWIDTH = 90 +WIDTH = int(os.getenv('width')) +LISTWIDTH = int(os.getenv('listWidth')) NOTEWIDTH = 50 MAXHISTORY = 10 ESTIMATE = '' diff --git a/modules/lune2.py b/modules/lune2.py index eb25f60..fb284b3 100644 --- a/modules/lune2.py +++ b/modules/lune2.py @@ -28,8 +28,8 @@ APICOST = .002 # Depends on the model https://openai.com/pricing PROMPT = Path('prompt.txt').read_text(encoding='utf-8') THREADS = int(os.getenv('threads')) LOCK = threading.Lock() -WIDTH = 60 -LISTWIDTH = 75 +WIDTH = int(os.getenv('width')) +LISTWIDTH = int(os.getenv('listWidth')) MAXHISTORY = 10 ESTIMATE = '' TOTALCOST = 0 diff --git a/modules/rpgmakerace.py b/modules/rpgmakerace.py index 43dfb27..8233a1f 100644 --- a/modules/rpgmakerace.py +++ b/modules/rpgmakerace.py @@ -30,8 +30,8 @@ OUTPUTAPICOST = .002 PROMPT = Path('prompt.txt').read_text(encoding='utf-8') THREADS = int(os.getenv('threads')) # Controls how many threads are working on a single file (May have to drop this) LOCK = threading.Lock() -WIDTH = 50 -LISTWIDTH = 90 +WIDTH = int(os.getenv('width')) +LISTWIDTH = int(os.getenv('listWidth')) NOTEWIDTH = 50 MAXHISTORY = 10 ESTIMATE = '' diff --git a/modules/rpgmakermvmz.py b/modules/rpgmakermvmz.py index 204fe5b..deac15e 100644 --- a/modules/rpgmakermvmz.py +++ b/modules/rpgmakermvmz.py @@ -29,8 +29,8 @@ OUTPUTAPICOST = .002 PROMPT = Path('prompt.txt').read_text(encoding='utf-8') THREADS = int(os.getenv('threads')) # Controls how many threads are working on a single file (May have to drop this) LOCK = threading.Lock() -WIDTH = 40 -LISTWIDTH = 50 +WIDTH = int(os.getenv('width')) +LISTWIDTH = int(os.getenv('listWidth')) NOTEWIDTH = 40 MAXHISTORY = 10 ESTIMATE = '' diff --git a/modules/txt.py b/modules/txt.py index 59917f3..d42280d 100644 --- a/modules/txt.py +++ b/modules/txt.py @@ -28,8 +28,8 @@ APICOST = .002 # Depends on the model https://openai.com/pricing PROMPT = Path('prompt.txt').read_text(encoding='utf-8') THREADS = int(os.getenv('threads')) LOCK = threading.Lock() -WIDTH = 75 -LISTWIDTH = 75 +WIDTH = int(os.getenv('width')) +LISTWIDTH = int(os.getenv('listWidth')) MAXHISTORY = 10 ESTIMATE = '' TOTALCOST = 0 diff --git a/modules/tyrano.py b/modules/tyrano.py index 3018b03..954451f 100644 --- a/modules/tyrano.py +++ b/modules/tyrano.py @@ -26,8 +26,8 @@ APICOST = .002 # Depends on the model https://openai.com/pricing PROMPT = Path('prompt.txt').read_text(encoding='utf-8') THREADS = int(os.getenv('threads')) # For GPT4 rate limit will be hit if you have more than 1 thread. LOCK = threading.Lock() -WIDTH = 80 -LISTWIDTH = 60 +WIDTH = int(os.getenv('width')) +LISTWIDTH = int(os.getenv('listWidth')) MAXHISTORY = 10 ESTIMATE = '' TOTALCOST = 0