feat: Improve System.json translation
This commit is contained in:
parent
35281e4438
commit
ac3827b91b
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
|
@ -601,7 +601,7 @@ def searchSS(state, pbar):
|
|||
|
||||
def searchSystem(data, pbar):
|
||||
tokens = 0
|
||||
context = 'What I give you is a menu item.'
|
||||
context = 'Reply with only the menu item.'
|
||||
|
||||
# Title
|
||||
response = translateGPT(data['gameTitle'], context)
|
||||
|
|
@ -623,7 +623,7 @@ def searchSystem(data, pbar):
|
|||
# Messages
|
||||
messages = (data['terms']['messages'])
|
||||
for key, value in messages.items():
|
||||
response = translateGPT(value, 'Translate this multiple choice answer')
|
||||
response = translateGPT(value, 'Reply with only the answer.')
|
||||
translatedText = response[0]
|
||||
|
||||
# Remove characters that may break scripts
|
||||
|
|
|
|||
Loading…
Reference in a new issue