Fix pricing for estimate
This commit is contained in:
parent
f4d23e9b7e
commit
a65129cc4e
14 changed files with 38 additions and 43 deletions
|
|
@ -53,8 +53,8 @@ if "gpt-3.5" in MODEL:
|
|||
BATCHSIZE = 10
|
||||
FREQUENCY_PENALTY = 0.2
|
||||
elif "gpt-4" in MODEL:
|
||||
INPUTAPICOST = 0.005
|
||||
OUTPUTAPICOST = 0.015
|
||||
INPUTAPICOST = 0.0025
|
||||
OUTPUTAPICOST = 0.01
|
||||
BATCHSIZE = 20
|
||||
FREQUENCY_PENALTY = 0.1
|
||||
|
||||
|
|
|
|||
|
|
@ -55,8 +55,8 @@ if "gpt-3.5" in MODEL:
|
|||
OUTPUTAPICOST = 0.002
|
||||
BATCHSIZE = 10
|
||||
elif "gpt-4" in MODEL:
|
||||
INPUTAPICOST = 0.005
|
||||
OUTPUTAPICOST = 0.015
|
||||
INPUTAPICOST = 0.0025
|
||||
OUTPUTAPICOST = 0.01
|
||||
BATCHSIZE = 40
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ if "gpt-3.5" in MODEL:
|
|||
BATCHSIZE = 10
|
||||
FREQUENCY_PENALTY = 0.2
|
||||
elif "gpt-4" in MODEL:
|
||||
INPUTAPICOST = 0.005
|
||||
OUTPUTAPICOST = 0.015
|
||||
INPUTAPICOST = 0.0025
|
||||
OUTPUTAPICOST = 0.01
|
||||
BATCHSIZE = 20
|
||||
FREQUENCY_PENALTY = 0.1
|
||||
|
||||
|
|
@ -276,7 +276,7 @@ def processImagesDir(directory_path, imageList):
|
|||
imageList[0].append(
|
||||
line
|
||||
) # Using strip() to remove any extra newlines or spaces
|
||||
imageList[1].append([10, 14])
|
||||
imageList[1].append([100, 22])
|
||||
except FileNotFoundError:
|
||||
print(f"The file at {file_path} was not found.")
|
||||
except IOError:
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ if "gpt-3.5" in MODEL:
|
|||
OUTPUTAPICOST = 0.002
|
||||
BATCHSIZE = 10
|
||||
elif "gpt-4" in MODEL:
|
||||
INPUTAPICOST = 0.005
|
||||
OUTPUTAPICOST = 0.015
|
||||
INPUTAPICOST = 0.0025
|
||||
OUTPUTAPICOST = 0.01
|
||||
BATCHSIZE = 40
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ if "gpt-3.5" in MODEL:
|
|||
OUTPUTAPICOST = 0.002
|
||||
BATCHSIZE = 10
|
||||
elif "gpt-4" in MODEL:
|
||||
INPUTAPICOST = 0.005
|
||||
OUTPUTAPICOST = 0.015
|
||||
INPUTAPICOST = 0.0025
|
||||
OUTPUTAPICOST = 0.01
|
||||
BATCHSIZE = 40
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ if "gpt-3.5" in MODEL:
|
|||
OUTPUTAPICOST = 0.002
|
||||
BATCHSIZE = 10
|
||||
elif "gpt-4" in MODEL:
|
||||
INPUTAPICOST = 0.005
|
||||
OUTPUTAPICOST = 0.015
|
||||
INPUTAPICOST = 0.0025
|
||||
OUTPUTAPICOST = 0.01
|
||||
BATCHSIZE = 40
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ if "gpt-3.5" in MODEL:
|
|||
OUTPUTAPICOST = 0.002
|
||||
BATCHSIZE = 10
|
||||
elif "gpt-4" in MODEL:
|
||||
INPUTAPICOST = 0.005
|
||||
OUTPUTAPICOST = 0.015
|
||||
INPUTAPICOST = 0.0025
|
||||
OUTPUTAPICOST = 0.01
|
||||
BATCHSIZE = 40
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ if "gpt-3.5" in MODEL:
|
|||
BATCHSIZE = 10
|
||||
FREQUENCY_PENALTY = 0.2
|
||||
elif "gpt-4" in MODEL:
|
||||
INPUTAPICOST = 0.005
|
||||
OUTPUTAPICOST = 0.015
|
||||
INPUTAPICOST = 0.0025
|
||||
OUTPUTAPICOST = 0.01
|
||||
BATCHSIZE = 20
|
||||
FREQUENCY_PENALTY = 0.1
|
||||
|
||||
|
|
@ -66,25 +66,23 @@ BAR_FORMAT = "{l_bar}{bar:10}{r_bar}{bar:-10b}"
|
|||
POSITION = 0
|
||||
LEAVE = False
|
||||
|
||||
# Dialogue / Scroll
|
||||
CODE401 = True
|
||||
CODE405 = True
|
||||
CODE408 = False # Warning, translates comments and can inflate costs.
|
||||
# Dialogue / Scroll / Choices (Main Codes)
|
||||
CODE401 = False
|
||||
CODE405 = False
|
||||
CODE102 = False
|
||||
|
||||
# Choices
|
||||
CODE102 = True
|
||||
# Optional
|
||||
CODE101 = False # Turn this one when names exist in 101
|
||||
CODE408 = False # Warning, translates comments and can inflate costs.
|
||||
|
||||
# Variables
|
||||
CODE122 = False
|
||||
|
||||
# Names
|
||||
CODE101 = False
|
||||
|
||||
# Other
|
||||
CODE355655 = False
|
||||
CODE357 = False
|
||||
CODE657 = False
|
||||
CODE356 = False
|
||||
CODE356 = True
|
||||
CODE320 = False
|
||||
CODE324 = False
|
||||
CODE111 = False
|
||||
|
|
@ -1262,7 +1260,7 @@ def searchCodes(page, pbar, jobList, filename):
|
|||
## Event Code: 122 [Set Variables]
|
||||
if "code" in codeList[i] and codeList[i]["code"] == 122 and CODE122 is True:
|
||||
# This is going to be the var being set. (IMPORTANT)
|
||||
if codeList[i]["parameters"][0] not in list(range(0, 1000)):
|
||||
if codeList[i]["parameters"][0] not in list(range(0, 100)):
|
||||
i += 1
|
||||
continue
|
||||
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ if "gpt-3.5" in MODEL:
|
|||
OUTPUTAPICOST = 0.002
|
||||
BATCHSIZE = 10
|
||||
elif "gpt-4" in MODEL:
|
||||
INPUTAPICOST = 0.005
|
||||
OUTPUTAPICOST = 0.015
|
||||
INPUTAPICOST = 0.0025
|
||||
OUTPUTAPICOST = 0.01
|
||||
BATCHSIZE = 40
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -59,8 +59,8 @@ if "gpt-3.5" in MODEL:
|
|||
OUTPUTAPICOST = 0.002
|
||||
BATCHSIZE = 10
|
||||
elif "gpt-4" in MODEL:
|
||||
INPUTAPICOST = 0.005
|
||||
OUTPUTAPICOST = 0.015
|
||||
INPUTAPICOST = 0.0025
|
||||
OUTPUTAPICOST = 0.01
|
||||
BATCHSIZE = 40
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ if "gpt-3.5" in MODEL:
|
|||
OUTPUTAPICOST = 0.002
|
||||
BATCHSIZE = 10
|
||||
elif "gpt-4" in MODEL:
|
||||
INPUTAPICOST = 0.005
|
||||
OUTPUTAPICOST = 0.015
|
||||
INPUTAPICOST = 0.0025
|
||||
OUTPUTAPICOST = 0.01
|
||||
BATCHSIZE = 40
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -55,8 +55,8 @@ if "gpt-3.5" in MODEL:
|
|||
BATCHSIZE = 10
|
||||
FREQUENCY_PENALTY = 0.2
|
||||
elif "gpt-4" in MODEL:
|
||||
INPUTAPICOST = 0.005
|
||||
OUTPUTAPICOST = 0.015
|
||||
INPUTAPICOST = 0.0025
|
||||
OUTPUTAPICOST = 0.01
|
||||
BATCHSIZE = 20
|
||||
FREQUENCY_PENALTY = 0.1
|
||||
|
||||
|
|
@ -964,7 +964,7 @@ def searchDB(events, pbar, jobList, filename):
|
|||
scenarioList[2].pop(0)
|
||||
|
||||
# Grab Items
|
||||
if table["name"] == "シーン回想" and ITEMFLAG == True:
|
||||
if table["name"] == "音楽鑑賞" and ITEMFLAG == True:
|
||||
with open("translations.txt", "a", encoding="utf-8") as file:
|
||||
for item in table["data"]:
|
||||
dataList = item["data"]
|
||||
|
|
@ -972,7 +972,7 @@ def searchDB(events, pbar, jobList, filename):
|
|||
# Parse #
|
||||
for j in range(len(dataList)):
|
||||
# Name
|
||||
if dataList[j].get("name") == "キャラ名":
|
||||
if dataList[j].get("name") == "名称":
|
||||
# Pass 1 (Grab Data)
|
||||
if setData == False:
|
||||
if dataList[j].get("value") != "":
|
||||
|
|
|
|||
|
|
@ -55,8 +55,8 @@ if "gpt-3.5" in MODEL:
|
|||
OUTPUTAPICOST = 0.002
|
||||
BATCHSIZE = 10
|
||||
elif "gpt-4" in MODEL:
|
||||
INPUTAPICOST = 0.005
|
||||
OUTPUTAPICOST = 0.015
|
||||
INPUTAPICOST = 0.0025
|
||||
OUTPUTAPICOST = 0.01
|
||||
BATCHSIZE = 40
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -34,8 +34,6 @@ Here are some vocabulary and terms so that you know the proper spelling and tran
|
|||
先生 (sensei)
|
||||
師匠 (shishou)
|
||||
せんせい (sensei)
|
||||
お兄ちゃん (Onii-chan)
|
||||
お姉ちゃん (Onee-chan)
|
||||
|
||||
# System
|
||||
初めから (Start)
|
||||
|
|
@ -81,5 +79,4 @@ ME 音量 (ME Volume)
|
|||
ローバー (Roper)
|
||||
|
||||
# Locations
|
||||
トリス (Tris)
|
||||
```
|
||||
Loading…
Reference in a new issue