From f171dfda78e7653246cdeecaf47cf4b2fe039110 Mon Sep 17 00:00:00 2001 From: DazedAnon Date: Sat, 7 Dec 2024 11:29:30 -0600 Subject: [PATCH] bump openai --- modules/wolf.py | 3 ++- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/wolf.py b/modules/wolf.py index 0e6bfa4..61123fd 100644 --- a/modules/wolf.py +++ b/modules/wolf.py @@ -284,6 +284,7 @@ def searchCodes(events, pbar, jobList, filename): totalTokens = [0, 0] translatedText = "" speaker = "" + lastSpeaker = "" nametag = "" initialJAString = "" global LOCK, NAMESLIST, MISMATCH, PBAR, FILENAME @@ -410,7 +411,7 @@ def searchCodes(events, pbar, jobList, filename): codeList[i]["stringArgs"][1] = speaker # Reuse Last Speaker - elif codeList[i]["intArgs"][0] == 500501 and lastSpeaker != "": + elif codeList[i]["intArgs"][0] == 500501 and lastSpeaker: codeList[i]["stringArgs"] = ["", lastSpeaker] codeList[i]["intArgs"] = [500529, 4112, 0] speaker = lastSpeaker diff --git a/requirements.txt b/requirements.txt index b32b670..04dd94c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ colorama==0.4.6 -openai==1.3.8 +openai==1.57.0 python-dotenv==1.0.0 retry==0.9.2 ruamel.yaml==0.17.32