Fix getSpeaker

This commit is contained in:
DazedAnon 2024-10-15 09:52:51 -05:00
parent 9edac72d38
commit 6f38cad661
9 changed files with 19 additions and 19 deletions

View file

@ -383,7 +383,7 @@ def getSpeaker(speaker):
# Translate and Store Speaker
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
True,
)
@ -394,7 +394,7 @@ def getSpeaker(speaker):
# Retry if name doesn't translate for some reason
if re.search(r"([a-zA-Z?])", response[0]) == None:
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
False,
)

View file

@ -318,7 +318,7 @@ def getSpeaker(speaker):
# Translate and Store Speaker
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
True,
)
@ -329,7 +329,7 @@ def getSpeaker(speaker):
# Retry if name doesn't translate for some reason
if re.search(r"([a-zA-Z?])", response[0]) == None:
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
False,
)

View file

@ -323,7 +323,7 @@ def getSpeaker(speaker):
# Translate and Store Speaker
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
True,
)
@ -334,7 +334,7 @@ def getSpeaker(speaker):
# Retry if name doesn't translate for some reason
if re.search(r"([a-zA-Z?])", response[0]) == None:
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
False,
)

View file

@ -391,7 +391,7 @@ def getSpeaker(speaker):
# Translate and Store Speaker
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
True,
)
@ -402,7 +402,7 @@ def getSpeaker(speaker):
# Retry if name doesn't translate for some reason
if re.search(r"([a-zA-Z?])", response[0]) == None:
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
False,
)

View file

@ -2432,7 +2432,7 @@ def getSpeaker(speaker):
# Translate and Store Speaker
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
True,
)
@ -2443,7 +2443,7 @@ def getSpeaker(speaker):
# Retry if name doesn't translate for some reason
if re.search(r"([a-zA-Z?])", response[0]) == None:
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
False,
)

View file

@ -69,7 +69,7 @@ LEAVE = False
# Dialogue / Scroll / Choices (Main Codes)
CODE401 = True
CODE405 = True
CODE102 = False
CODE102 = True
# Optional
CODE101 = True # Turn this one when names exist in 101
@ -2513,7 +2513,7 @@ def getSpeaker(speaker):
# Translate and Store Speaker
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
True,
)
@ -2524,7 +2524,7 @@ def getSpeaker(speaker):
# Retry if name doesn't translate for some reason
if re.search(r"([a-zA-Z?])", response[0]) == None:
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
False,
)

View file

@ -296,7 +296,7 @@ def getSpeaker(speaker):
# Translate and Store Speaker
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
True,
)
@ -307,7 +307,7 @@ def getSpeaker(speaker):
# Retry if name doesn't translate for some reason
if re.search(r"([a-zA-Z?])", response[0]) == None:
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
False,
)

View file

@ -1780,7 +1780,7 @@ def getSpeaker(speaker):
# Translate and Store Speaker
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
True,
)
@ -1791,7 +1791,7 @@ def getSpeaker(speaker):
# Retry if name doesn't translate for some reason
if re.search(r"([a-zA-Z?])", response[0]) == None:
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
False,
)

View file

@ -343,7 +343,7 @@ def getSpeaker(speaker):
# Translate and Store Speaker
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
True,
)
@ -354,7 +354,7 @@ def getSpeaker(speaker):
# Retry if name doesn't translate for some reason
if re.search(r"([a-zA-Z?])", response[0]) == None:
response = translateGPT(
f'Speaker: {speaker}',
f'{speaker}',
"Reply with the " + LANGUAGE + " translation of the NPC name.",
False,
)