fixed bug in custom settings upload and clear
Browse files- demo/translation_settings.json +1 -1
- modules/common/file_ensurer.py +2 -2
- webgui.py +1 -1
demo/translation_settings.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
},
|
11 |
|
12 |
"openai settings": {
|
13 |
-
"openai_model": "gpt-
|
14 |
"openai_system_message": "As a Japanese to English translator, translate narration into English simple past, everything else should remain in its original tense. Maintain original formatting, punctuation, and paragraph structure. Keep pre-translated terms and anticipate names not replaced. Preserve terms and markers marked with >>><<< and match the output's line count to the input's. Note: 〇 indicates chapter changes.",
|
15 |
"openai_temperature": 0.3,
|
16 |
"openai_top_p": 1.0,
|
|
|
10 |
},
|
11 |
|
12 |
"openai settings": {
|
13 |
+
"openai_model": "gpt-4o",
|
14 |
"openai_system_message": "As a Japanese to English translator, translate narration into English simple past, everything else should remain in its original tense. Maintain original formatting, punctuation, and paragraph structure. Keep pre-translated terms and anticipate names not replaced. Preserve terms and markers marked with >>><<< and match the output's line count to the input's. Note: 〇 indicates chapter changes.",
|
15 |
"openai_temperature": 0.3,
|
16 |
"openai_top_p": 1.0,
|
modules/common/file_ensurer.py
CHANGED
@@ -86,7 +86,7 @@ class FileEnsurer():
|
|
86 |
|
87 |
"openai settings": {
|
88 |
"openai_model": "gpt-4",
|
89 |
-
"openai_system_message": "
|
90 |
"openai_temperature": 0.3,
|
91 |
"openai_top_p": 1.0,
|
92 |
"openai_n": 1,
|
@@ -100,7 +100,7 @@ class FileEnsurer():
|
|
100 |
|
101 |
"gemini settings": {
|
102 |
"gemini_model": "gemini-pro",
|
103 |
-
"gemini_prompt": "
|
104 |
"gemini_temperature": 0.3,
|
105 |
"gemini_top_p": None,
|
106 |
"gemini_top_k": None,
|
|
|
86 |
|
87 |
"openai settings": {
|
88 |
"openai_model": "gpt-4",
|
89 |
+
"openai_system_message": "Translate the text from Japanese to English.",
|
90 |
"openai_temperature": 0.3,
|
91 |
"openai_top_p": 1.0,
|
92 |
"openai_n": 1,
|
|
|
100 |
|
101 |
"gemini settings": {
|
102 |
"gemini_model": "gemini-pro",
|
103 |
+
"gemini_prompt": "Translate the text from Japanese to English",
|
104 |
"gemini_temperature": 0.3,
|
105 |
"gemini_top_p": None,
|
106 |
"gemini_top_k": None,
|
webgui.py
CHANGED
@@ -1412,7 +1412,7 @@ class KudasaiGUI:
|
|
1412 |
"deepl_formality": None,
|
1413 |
}
|
1414 |
|
1415 |
-
return settings
|
1416 |
|
1417 |
##-------------------start-of-fetch_log_content()---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
1418 |
|
|
|
1412 |
"deepl_formality": None,
|
1413 |
}
|
1414 |
|
1415 |
+
return *settings.values(),
|
1416 |
|
1417 |
##-------------------start-of-fetch_log_content()---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
1418 |
|