Skip to content

Commit 48e84ad

Browse files
rbenzaAirsaid
authored andcommitted
Shorten role 2
1 parent afa1b02 commit 48e84ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/airsaid/localization/translate/impl/openai/ChatGPTTranslator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public String getAppKeyDisplay() {
8686
@NotNull
8787
public String getRequestBody(@NotNull Lang fromLang, @NotNull Lang toLang, @NotNull String text) {
8888
String lang = toLang.getEnglishName();
89-
String roleSystem = String.format("Translate the user provided text into %s. Apply these translation rules; 1.Keep the exact original formatting and style. 2.Keep translations concise and repeat the original text for unchanged translations (e.g. 'OK'). 3.Audience: native %s speakers. 4.Text is used in: Android app User interface", lang, lang);
89+
String roleSystem = String.format("Translate the user provided text into %s. Apply these translation rules; 1.Keep the exact original formatting and style. 2.Keep translations concise and just repeat the original text for unchanged translations (e.g. 'OK'). 3.Audience: native %s speakers. 4.Text is used in: Android app UI.", lang, lang);
9090

9191
ChatGPTMessage role = new ChatGPTMessage("system", roleSystem);
9292
ChatGPTMessage msg = new ChatGPTMessage("user", String.format("Text to translate: %s", text));

0 commit comments

Comments
 (0)