Browse Source

[+] FineTuned Sysmessage Depends for local language

this for JSON Exporter
B0zal 1 year ago
parent
commit
e6cc1625b5

+ 3 - 3
app/components/exporter.tsx

@@ -575,7 +575,7 @@ export function JsonPreviewer(props: {
     messages: [
       {
         role: "system",
-        content: "You are an assistant that " + props.topic,
+        content: `${Locale.FineTuned.Sysmessage} ${props.topic}`,
       },
       ...props.messages.map((m) => ({
         role: m.role,
@@ -602,8 +602,8 @@ export function JsonPreviewer(props: {
         messages={props.messages}
       />
       <div className="markdown-body" onClick={copy}>
-      <Markdown content={mdText} />
+        <Markdown content={mdText} />
       </div>
     </>
   );
-}
+}

+ 3 - 0
app/locales/ar.ts

@@ -233,6 +233,9 @@ ${builtin} مدمجة، ${custom} تم تعريفها من قبل المستخد
   Plugin: {
     Name: "المكوّن الإضافي",
   },
+  FineTuned: {
+    Sysmessage: "أنت مساعد ي",
+  },
   Mask: {
     Name: "الأقنعة",
     Page: {

+ 2 - 2
app/locales/bn.ts

@@ -268,8 +268,8 @@ const bn: PartialLocaleType = {
     Clear: "সঙ্গতি পরিস্কার করুন",
     Revert: "পূর্ববর্তী অবস্থানে ফিরে যান",
   },
-  Plugin: {
-    Name: "প্লাগইন",
+  FineTuned: {
+    Sysmessage: "আপনি একটি সহকারী যা",
   },
   Mask: {
     Name: "মাস্ক",

+ 4 - 1
app/locales/cn.ts

@@ -288,7 +288,10 @@ const cn = {
     Revert: "恢复上下文",
   },
   Plugin: {
-    Name: "插件",
+    Name: "你是一个助手 ",
+  },
+  FineTuned: {
+    Sysmessage: "你是一个助手",
   },
   Mask: {
     Name: "面具",

+ 2 - 2
app/locales/cs.ts

@@ -185,8 +185,8 @@ const cs: PartialLocaleType = {
     Edit: "Kontextové a paměťové pokyny",
     Add: "Přidat pokyn",
   },
-  Plugin: {
-    Name: "Plugin",
+  FineTuned: {
+    Sysmessage: "Jste asistent, který",
   },
   Mask: {
     Name: "Maska",

+ 3 - 0
app/locales/de.ts

@@ -192,6 +192,9 @@ const de: PartialLocaleType = {
   Plugin: {
     Name: "Plugin",
   },
+  FineTuned: {
+    Sysmessage: "Du bist ein Assistent, der",
+  },
   Mask: {
     Name: "Mask",
     Page: {

+ 3 - 0
app/locales/en.ts

@@ -295,6 +295,9 @@ const en: LocaleType = {
   Plugin: {
     Name: "Plugin",
   },
+  FineTuned: {
+    Sysmessage: "You are an assistant that",
+  },
   Mask: {
     Name: "Mask",
     Page: {

+ 3 - 0
app/locales/es.ts

@@ -190,6 +190,9 @@ const es: PartialLocaleType = {
   Plugin: {
     Name: "Plugin",
   },
+  FineTuned: {
+    Sysmessage: "Eres un asistente que",
+  },
   Mask: {
     Name: "Mask",
     Page: {

+ 3 - 0
app/locales/fr.ts

@@ -244,6 +244,9 @@ const fr: PartialLocaleType = {
   Plugin: {
     Name: "Extension",
   },
+  FineTuned: {
+    Sysmessage: "Eres un asistente que",
+  },
   Mask: {
     Name: "Masque",
     Page: {

+ 3 - 0
app/locales/id.ts

@@ -274,6 +274,9 @@ const id: PartialLocaleType = {
   Plugin: {
     Name: "Plugin",
   },
+  FineTuned: {
+    Sysmessage: "Anda adalah asisten yang",
+  },
   Mask: {
     Name: "Masks",
     Page: {

+ 3 - 0
app/locales/it.ts

@@ -191,6 +191,9 @@ const it: PartialLocaleType = {
   Plugin: {
     Name: "Plugin",
   },
+  FineTuned: {
+    Sysmessage: "Sei un assistente che",
+  },
   Mask: {
     Name: "Mask",
     Page: {

+ 1 - 0
app/locales/jp.ts

@@ -204,6 +204,7 @@ const jp: PartialLocaleType = {
     Add: "追加",
   },
   Plugin: { Name: "プラグイン" },
+  FineTuned: { Sysmessage: "あなたはアシスタントです" },
   Mask: {
     Name: "キャラクタープリセット",
     Page: {

+ 3 - 0
app/locales/ko.ts

@@ -186,6 +186,9 @@ const ko: PartialLocaleType = {
   Plugin: {
     Name: "플러그인",
   },
+  FineTuned: {
+    Sysmessage: "당신은 어시스턴트입니다",
+  },
   Mask: {
     Name: "마스크",
     Page: {

+ 3 - 0
app/locales/ru.ts

@@ -191,6 +191,9 @@ const ru: PartialLocaleType = {
   Plugin: {
     Name: "Плагин",
   },
+  FineTuned: {
+    Sysmessage: "Вы - ассистент, который",
+  },
   Mask: {
     Name: "Маска",
     Page: {

+ 3 - 0
app/locales/tr.ts

@@ -191,6 +191,9 @@ const tr: PartialLocaleType = {
   Plugin: {
     Name: "Plugin",
   },
+  FineTuned: {
+    Sysmessage: "Sen bir asistansın",
+  },
   Mask: {
     Name: "Mask",
     Page: {

+ 1 - 0
app/locales/tw.ts

@@ -180,6 +180,7 @@ const tw: PartialLocaleType = {
     Add: "新增一條",
   },
   Plugin: { Name: "外掛" },
+  FineTuned: { Sysmessage: "你是一個助手" },
   Mask: {
     Name: "面具",
     Page: {

+ 3 - 0
app/locales/vi.ts

@@ -186,6 +186,9 @@ const vi: PartialLocaleType = {
   Plugin: {
     Name: "Plugin",
   },
+  FineTuned: {
+    Sysmessage: "Bạn là một trợ lý",
+  },
   Mask: {
     Name: "Mẫu",
     Page: {