@lobehub/chat 1.28.5 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/locales/ar/chat.json +1 -0
  3. package/locales/ar/setting.json +7 -2
  4. package/locales/bg-BG/chat.json +1 -0
  5. package/locales/bg-BG/setting.json +7 -2
  6. package/locales/de-DE/chat.json +1 -0
  7. package/locales/de-DE/setting.json +7 -2
  8. package/locales/en-US/chat.json +1 -0
  9. package/locales/en-US/setting.json +7 -2
  10. package/locales/es-ES/chat.json +1 -0
  11. package/locales/es-ES/setting.json +7 -2
  12. package/locales/fa-IR/chat.json +1 -0
  13. package/locales/fa-IR/setting.json +7 -2
  14. package/locales/fr-FR/chat.json +1 -0
  15. package/locales/fr-FR/setting.json +7 -2
  16. package/locales/it-IT/chat.json +1 -0
  17. package/locales/it-IT/setting.json +7 -2
  18. package/locales/ja-JP/chat.json +1 -0
  19. package/locales/ja-JP/setting.json +7 -2
  20. package/locales/ko-KR/chat.json +1 -0
  21. package/locales/ko-KR/setting.json +7 -2
  22. package/locales/nl-NL/chat.json +1 -0
  23. package/locales/nl-NL/setting.json +7 -2
  24. package/locales/pl-PL/chat.json +1 -0
  25. package/locales/pl-PL/setting.json +7 -2
  26. package/locales/pt-BR/chat.json +1 -0
  27. package/locales/pt-BR/setting.json +7 -2
  28. package/locales/ru-RU/chat.json +1 -0
  29. package/locales/ru-RU/setting.json +7 -2
  30. package/locales/tr-TR/chat.json +1 -0
  31. package/locales/tr-TR/setting.json +7 -2
  32. package/locales/vi-VN/chat.json +1 -0
  33. package/locales/vi-VN/setting.json +7 -2
  34. package/locales/zh-CN/chat.json +1 -0
  35. package/locales/zh-CN/setting.json +7 -2
  36. package/locales/zh-TW/chat.json +1 -0
  37. package/locales/zh-TW/setting.json +7 -2
  38. package/package.json +1 -1
  39. package/src/app/(main)/settings/system-agent/index.tsx +1 -0
  40. package/src/chains/__tests__/__snapshots__/summaryHistory.test.ts.snap +21 -0
  41. package/src/chains/__tests__/summaryHistory.test.ts +24 -0
  42. package/src/chains/summaryHistory.ts +19 -0
  43. package/src/const/settings/agent.ts +3 -1
  44. package/src/const/settings/systemAgent.ts +1 -0
  45. package/src/database/client/models/__tests__/session.test.ts +0 -1
  46. package/src/database/server/migrations/0011_add_topic_history_summary.sql +2 -0
  47. package/src/database/server/migrations/meta/0011_snapshot.json +3196 -0
  48. package/src/database/server/migrations/meta/_journal.json +7 -0
  49. package/src/database/server/models/__tests__/topic.test.ts +4 -0
  50. package/src/database/server/models/topic.ts +16 -0
  51. package/src/database/server/schemas/lobechat/topic.ts +3 -2
  52. package/src/features/AgentSetting/AgentChat/index.tsx +4 -18
  53. package/src/features/ChatInput/ActionBar/History.tsx +24 -21
  54. package/src/features/ChatInput/ActionBar/Token/TokenTag.tsx +22 -7
  55. package/src/features/Conversation/Actions/index.ts +2 -2
  56. package/src/features/Conversation/components/ChatItem/index.tsx +6 -6
  57. package/src/features/Conversation/components/History/index.tsx +71 -0
  58. package/src/features/Conversation/types/index.tsx +1 -1
  59. package/src/libs/next-auth/sso-providers/microsoft-entra-id-helper.ts +1 -1
  60. package/src/locales/default/chat.ts +1 -0
  61. package/src/locales/default/setting.ts +7 -2
  62. package/src/prompts/chatMessages/index.test.ts +94 -0
  63. package/src/prompts/chatMessages/index.ts +11 -0
  64. package/src/prompts/systemRole/index.ts +22 -0
  65. package/src/server/routers/lambda/topic.ts +7 -0
  66. package/src/services/__tests__/chat.test.ts +13 -61
  67. package/src/services/chat.ts +45 -11
  68. package/src/store/agent/slices/chat/__snapshots__/selectors.test.ts.snap +3 -1
  69. package/src/store/chat/helpers.ts +6 -2
  70. package/src/store/chat/slices/aiChat/actions/generateAIChat.ts +21 -8
  71. package/src/store/chat/slices/aiChat/actions/helpers.ts +9 -0
  72. package/src/store/chat/slices/aiChat/actions/index.ts +3 -1
  73. package/src/store/chat/slices/aiChat/actions/memory.ts +52 -0
  74. package/src/store/chat/slices/message/selectors.ts +1 -3
  75. package/src/store/chat/slices/topic/selectors.ts +24 -12
  76. package/src/store/chat/slices/{enchance → translate}/action.test.ts +0 -13
  77. package/src/store/chat/slices/{enchance → translate}/action.ts +5 -24
  78. package/src/store/chat/slices/tts/action.test.ts +63 -0
  79. package/src/store/chat/slices/tts/action.ts +35 -0
  80. package/src/store/chat/store.ts +6 -3
  81. package/src/store/file/reducers/uploadFileList.test.ts +197 -0
  82. package/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap +3 -1
  83. package/src/store/user/slices/settings/selectors/systemAgent.ts +2 -0
  84. package/src/types/agent/index.ts +2 -4
  85. package/src/types/topic.ts +13 -0
  86. package/src/types/user/settings/systemAgent.ts +1 -0
  87. package/src/utils/tokenizer/client.ts +1 -1
  88. /package/src/features/Conversation/components/{ChatItem → History}/HistoryDivider.tsx +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 1.29.0](https://github.com/lobehub/lobe-chat/compare/v1.28.6...v1.29.0)
6
+
7
+ <sup>Released on **2024-11-09**</sup>
8
+
9
+ #### ✨ Features
10
+
11
+ - **misc**: Support compress history messages.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's improved
19
+
20
+ - **misc**: Support compress history messages, closes [#4639](https://github.com/lobehub/lobe-chat/issues/4639) ([145bbb4](https://github.com/lobehub/lobe-chat/commit/145bbb4))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ### [Version 1.28.6](https://github.com/lobehub/lobe-chat/compare/v1.28.5...v1.28.6)
31
+
32
+ <sup>Released on **2024-11-09**</sup>
33
+
34
+ #### 🐛 Bug Fixes
35
+
36
+ - **misc**: Fix env typo of MS Entra ID.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's fixed
44
+
45
+ - **misc**: Fix env typo of MS Entra ID, closes [#4651](https://github.com/lobehub/lobe-chat/issues/4651) ([f145252](https://github.com/lobehub/lobe-chat/commit/f145252))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 1.28.5](https://github.com/lobehub/lobe-chat/compare/v1.28.4...v1.28.5)
6
56
 
7
57
  <sup>Released on **2024-11-08**</sup>
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "رسائل المحادثة",
126
+ "historySummary": "ملخص التاريخ",
126
127
  "rest": "المتبقي",
127
128
  "systemRole": "تعيين الدور",
128
129
  "title": "تفاصيل الرمز",
@@ -175,8 +175,8 @@
175
175
  "desc": "هل يجب إنشاء موضوع تلقائيًا أثناء الدردشة، يسري ذلك فقط في المواضيع المؤقتة",
176
176
  "title": "تمكين إنشاء الموضوع تلقائيًا"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "هل تريد تمكين عتبة ضغط طول الرسائل التاريخية"
178
+ "enableCompressHistory": {
179
+ "title": "تفعيل تلخيص الرسائل التاريخية تلقائيًا"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "غير محدود",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "أدخل كلمة الموجه المخصصة",
379
379
  "title": "كلمة الموجه المخصصة"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "نموذج تاريخ المحادثة",
383
+ "modelDesc": "حدد النموذج المستخدم لضغط تاريخ المحادثة",
384
+ "title": "تلخيص تلقائي لتاريخ المحادثة"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "نموذج إعادة صياغة الأسئلة",
383
388
  "modelDesc": "نموذج مخصص لتحسين أسئلة المستخدمين",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "Чат съобщения",
126
+ "historySummary": "Историческо резюме",
126
127
  "rest": "Оставащи",
127
128
  "systemRole": "Настройки на ролята",
128
129
  "title": "Детайли на токена",
@@ -175,8 +175,8 @@
175
175
  "desc": "Дали да се създава автоматично тема по време на разговора, ефективно само във временни теми",
176
176
  "title": "Автоматично създаване на тема"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "Активиране на прага на компресия на дължината на съобщенията в историята"
178
+ "enableCompressHistory": {
179
+ "title": "Активиране на автоматично обобщаване на историята на съобщенията"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "Неограничен",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "Моля, въведете персонализирана подканва",
379
379
  "title": "Персонализирана подканва"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "Модел на история на сесията",
383
+ "modelDesc": "Определете модела, използван за компресиране на историята на сесията",
384
+ "title": "Автоматично обобщаване на историята на сесията"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "Модел за пренаписване на запитвания",
383
388
  "modelDesc": "Определя модел за оптимизиране на запитванията на потребителите",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "Chats",
126
+ "historySummary": "Historische Zusammenfassung",
126
127
  "rest": "Verbleibend",
127
128
  "systemRole": "Systemrolle",
128
129
  "title": "Kontextdetails",
@@ -175,8 +175,8 @@
175
175
  "desc": "Automatische Erstellung eines Themas während des Gesprächs, nur in temporären Themen aktiv",
176
176
  "title": "Automatische Themen-Erstellung aktivieren"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "Aktivieren der Komprimierungsschwelle für Historienlänge"
178
+ "enableCompressHistory": {
179
+ "title": "Automatische Zusammenfassung der Verlaufnachrichten aktivieren"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "Unbegrenzt",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "Bitte benutzerdefinierte Eingabe eingeben",
379
379
  "title": "Benutzerdefinierte Eingabe"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "Gesprächshistorienmodell",
383
+ "modelDesc": "Das Modell, das zur Komprimierung der Gesprächshistorie verwendet wird",
384
+ "title": "Automatische Zusammenfassung der Gesprächshistorie"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "Fragenumformulierung Modell",
383
388
  "modelDesc": "Modell zur Optimierung der Benutzeranfragen",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "Chat Messages",
126
+ "historySummary": "History Summary",
126
127
  "rest": "Remaining",
127
128
  "systemRole": "Role Settings",
128
129
  "title": "Context Details",
@@ -175,8 +175,8 @@
175
175
  "desc": "Whether to automatically create a topic during the conversation, only effective in temporary topics",
176
176
  "title": "Auto Create Topic"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "Enable History Message Length Compression Threshold"
178
+ "enableCompressHistory": {
179
+ "title": "Enable Automatic Summary of Chat History"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "Unlimited",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "Please enter custom prompt",
379
379
  "title": "Custom Prompt"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "Conversation History Model",
383
+ "modelDesc": "Specify the model used to compress conversation history",
384
+ "title": "Automatically Summarize Conversation History"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "Question Rewriting Model",
383
388
  "modelDesc": "Specify the model used to optimize user inquiries",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "Mensajes de chat",
126
+ "historySummary": "Resumen histórico",
126
127
  "rest": "Restante",
127
128
  "systemRole": "Rol del sistema",
128
129
  "title": "Detalles del token",
@@ -175,8 +175,8 @@
175
175
  "desc": "Indica si se debe crear automáticamente un tema durante la conversación, solo se aplica en temas temporales",
176
176
  "title": "Crear tema automáticamente"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "Activar umbral de compresión de longitud de mensajes históricos"
178
+ "enableCompressHistory": {
179
+ "title": "Activar resumen automático de mensajes históricos"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "Sin límite",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "Introduce la palabra clave personalizada",
379
379
  "title": "Palabra clave personalizada"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "Modelo de historial de conversación",
383
+ "modelDesc": "Especifica el modelo utilizado para comprimir el historial de conversación",
384
+ "title": "Resumen automático del historial de conversación"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "Modelo de reescritura de preguntas",
383
388
  "modelDesc": "Modelo designado para optimizar las preguntas de los usuarios",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "پیام‌های گفتگو",
126
+ "historySummary": "خلاصه تاریخ",
126
127
  "rest": "باقی‌مانده قابل استفاده",
127
128
  "systemRole": "تنظیم نقش",
128
129
  "title": "جزئیات پیام‌ها",
@@ -175,8 +175,8 @@
175
175
  "desc": "آیا در طول مکالمه به‌طور خودکار موضوع ایجاد شود، فقط در موضوعات موقت اعمال می‌شود",
176
176
  "title": "ایجاد خودکار موضوع"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "آیا آستانه فشرده‌سازی طول پیام‌های تاریخی فعال شود"
178
+ "enableCompressHistory": {
179
+ "title": "فعال‌سازی خلاصه‌سازی خودکار تاریخچه پیام‌ها"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "بدون محدودیت",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "لطفاً اعلان سفارشی خود را وارد کنید",
379
379
  "title": "اعلان سفارشی"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "مدل تاریخچه گفتگو",
383
+ "modelDesc": "مدلی که برای فشرده‌سازی تاریخچه گفتگو استفاده می‌شود",
384
+ "title": "خلاصه‌سازی خودکار تاریخچه گفتگو"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "مدل بازنویسی پرسش",
383
388
  "modelDesc": "مدلی که برای بهینه‌سازی پرسش‌های کاربران استفاده می‌شود",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "Messages de discussion",
126
+ "historySummary": "Résumé historique",
126
127
  "rest": "Restant disponible",
127
128
  "systemRole": "Rôle système",
128
129
  "title": "Détails du jeton",
@@ -175,8 +175,8 @@
175
175
  "desc": "Activer la création automatique de sujets pendant la conversation, uniquement valable pour les sujets temporaires",
176
176
  "title": "Activer la création automatique de sujets"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "Activer le seuil de compression de la longueur des messages"
178
+ "enableCompressHistory": {
179
+ "title": "Activer le résumé automatique des messages historiques"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "Illimité",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "Veuillez entrer le mot-clé personnalisé",
379
379
  "title": "Mot-clé personnalisé"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "Modèle d'historique de conversation",
383
+ "modelDesc": "Modèle utilisé pour compresser l'historique des conversations",
384
+ "title": "Résumé automatique de l'historique des conversations"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "Modèle de reformulation des questions",
383
388
  "modelDesc": "Modèle utilisé pour optimiser les questions des utilisateurs",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "Chat",
126
+ "historySummary": "Riepilogo storico",
126
127
  "rest": "Rimanenti",
127
128
  "systemRole": "Ruolo di sistema",
128
129
  "title": "Dettagli del Token",
@@ -175,8 +175,8 @@
175
175
  "desc": "Se creare automaticamente un argomento durante la conversazione, valido solo per le conversazioni temporanee",
176
176
  "title": "Abilita la creazione automatica di argomenti"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "Abilita la soglia di compressione della lunghezza dei messaggi storici"
178
+ "enableCompressHistory": {
179
+ "title": "Attiva il riassunto automatico della cronologia dei messaggi"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "Illimitato",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "Inserisci il suggerimento personalizzato",
379
379
  "title": "Suggerimento personalizzato"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "Modello di storia delle conversazioni",
383
+ "modelDesc": "Specifica il modello utilizzato per comprimere la storia delle conversazioni",
384
+ "title": "Riepilogo automatico della storia delle conversazioni"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "Modello di riscrittura delle domande",
383
388
  "modelDesc": "Modello specificato per ottimizzare le domande degli utenti",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "チャットメッセージ",
126
+ "historySummary": "履歴の要約",
126
127
  "rest": "残り利用可能",
127
128
  "systemRole": "システムロール設定",
128
129
  "title": "コンテキストの詳細",
@@ -175,8 +175,8 @@
175
175
  "desc": "会話中に自動的にトピックを作成するかどうか。一時的なトピックのみ有効です",
176
176
  "title": "自動的にトピックを作成する"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "過去メッセージの長さの圧縮閾値を有効にする"
178
+ "enableCompressHistory": {
179
+ "title": "履歴メッセージの自動要約を有効にする"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "制限なし",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "カスタムプロンプトを入力してください",
379
379
  "title": "カスタムプロンプト"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "会話履歴モデル",
383
+ "modelDesc": "会話履歴を圧縮するために指定されたモデル",
384
+ "title": "会話履歴の自動要約"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "質問リライトモデル",
383
388
  "modelDesc": "ユーザーの質問を最適化するために指定されたモデル",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "채팅 메시지",
126
+ "historySummary": "역사 요약",
126
127
  "rest": "남은 사용량",
127
128
  "systemRole": "시스템 역할",
128
129
  "title": "컨텍스트 세부 정보",
@@ -175,8 +175,8 @@
175
175
  "desc": "대화 중에 자동으로 주제를 만들지 여부를 설정합니다. 일시적인 주제에서만 작동합니다",
176
176
  "title": "자동 주제 생성 활성화"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "이전 메시지 길이 압축 임계값 활성화"
178
+ "enableCompressHistory": {
179
+ "title": "역사 메시지 자동 요약 활성화"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "제한 없음",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "사용자 정의 프롬프트 입력",
379
379
  "title": "사용자 정의 프롬프트"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "대화 기록 모델",
383
+ "modelDesc": "대화 기록 압축에 사용되는 모델을 지정합니다",
384
+ "title": "대화 기록 자동 요약"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "질문 재작성 모델",
383
388
  "modelDesc": "사용자의 질문을 최적화하는 데 사용되는 모델 지정",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "Chats",
126
+ "historySummary": "Geschiedenis samenvatting",
126
127
  "rest": "Rust",
127
128
  "systemRole": "Systeemrol",
128
129
  "title": "Contextuele details",
@@ -175,8 +175,8 @@
175
175
  "desc": "Automatisch een onderwerp maken tijdens het gesprek, alleen van toepassing op tijdelijke onderwerpen",
176
176
  "title": "Automatisch onderwerp maken"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "Compressiedrempel voor berichtlengte inschakelen"
178
+ "enableCompressHistory": {
179
+ "title": "Automatisch samenvatten van historische berichten inschakelen"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "Onbeperkt",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "Voer aangepaste prompt in",
379
379
  "title": "Aangepaste prompt"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "Gespreksgeschiedenismodel",
383
+ "modelDesc": "Specificeer het model dat wordt gebruikt voor het comprimeren van gespreksgeschiedenis",
384
+ "title": "Automatisch samenvatten van gespreksgeschiedenis"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "Vraag herschrijvingsmodel",
383
388
  "modelDesc": "Model dat is opgegeven voor het optimaliseren van gebruikersvragen",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "Rozmowy",
126
+ "historySummary": "Podsumowanie historii",
126
127
  "rest": "Pozostałe",
127
128
  "systemRole": "Rola systemowa",
128
129
  "title": "Szczegóły tokena",
@@ -175,8 +175,8 @@
175
175
  "desc": "Automatyczne tworzenie tematu podczas rozmowy, działa tylko w przypadku tymczasowych tematów",
176
176
  "title": "Automatyczne tworzenie tematu"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "Włącz próg kompresji historii"
178
+ "enableCompressHistory": {
179
+ "title": "Włącz automatyczne podsumowywanie historii wiadomości"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "Bez limitu",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "Wprowadź niestandardowe słowo podpowiedzi",
379
379
  "title": "Niestandardowe słowo podpowiedzi"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "Model historii rozmów",
383
+ "modelDesc": "Model używany do kompresji historii rozmów",
384
+ "title": "Automatyczne podsumowanie historii rozmów"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "Model przekształcania zapytań",
383
388
  "modelDesc": "Model używany do optymalizacji zapytań użytkowników",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "Mensagens de bate-papo",
126
+ "historySummary": "Resumo Histórico",
126
127
  "rest": "Restante disponível",
127
128
  "systemRole": "Configuração de papel do sistema",
128
129
  "title": "Detalhes do Token",
@@ -175,8 +175,8 @@
175
175
  "desc": "Se deve criar automaticamente um tópico durante a conversa, apenas válido em tópicos temporários",
176
176
  "title": "Criar tópico automaticamente"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "Ativar limite de compactação de mensagens"
178
+ "enableCompressHistory": {
179
+ "title": "Ativar resumo automático de mensagens históricas"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "Sem limite",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "Digite a palavra-chave personalizada",
379
379
  "title": "Palavra-chave personalizada"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "Modelo de Histórico de Conversa",
383
+ "modelDesc": "Especifica o modelo usado para comprimir o histórico de conversa",
384
+ "title": "Resumo Automático do Histórico de Conversa"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "Modelo de Reescrita de Perguntas",
383
388
  "modelDesc": "Modelo designado para otimizar as perguntas dos usuários",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "Чаты",
126
+ "historySummary": "Историческое резюме",
126
127
  "rest": "Остаток",
127
128
  "systemRole": "Роль системы",
128
129
  "title": "Детали контекста",
@@ -175,8 +175,8 @@
175
175
  "desc": "Автоматическое создание темы во время беседы, работает только во временных темах",
176
176
  "title": "Автоматическое создание темы"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "Включить сжатие истории сообщений"
178
+ "enableCompressHistory": {
179
+ "title": "Включить автоматическое резюмирование истории сообщений"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "Без ограничений",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "Введите пользовательский запрос",
379
379
  "title": "Пользовательский запрос"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "Модель истории беседы",
383
+ "modelDesc": "Укажите модель, используемую для сжатия истории беседы",
384
+ "title": "Автоматическое резюмирование истории беседы"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "Модель переформулирования вопросов",
383
388
  "modelDesc": "Модель, предназначенная для оптимизации вопросов пользователей",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "Sohbetler",
126
+ "historySummary": "Tarih Özeti",
126
127
  "rest": "Kalan",
127
128
  "systemRole": "Sistem Rolü",
128
129
  "title": "Bağlam Detayları",
@@ -175,8 +175,8 @@
175
175
  "desc": "Sohbet sırasında otomatik olarak bir konu oluşturup oluşturmayacağınız, yalnızca geçici konularda etkilidir",
176
176
  "title": "Otomatik Konu Oluştur"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "Geçmiş Mesaj Uzunluğu Sıkıştırma Eşiği Kullan"
178
+ "enableCompressHistory": {
179
+ "title": "Geçmiş mesajların otomatik özetini "
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "Sınırsız",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "Lütfen özel ipucu kelimelerini girin",
379
379
  "title": "Özel İpucu"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "Oturum Geçmişi Modeli",
383
+ "modelDesc": "Oturum geçmişini sıkıştırmak için kullanılan modeli belirtin",
384
+ "title": "Oturum Geçmişini Otomatik Olarak Özetle"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "Soru Yeniden Yazım Modeli",
383
388
  "modelDesc": "Kullanıcı sorularını optimize etmek için kullanılan model",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "Tin nhắn trò chuyện",
126
+ "historySummary": "Tóm tắt lịch sử",
126
127
  "rest": "Còn lại",
127
128
  "systemRole": "Vai trò hệ thống",
128
129
  "title": "Chi tiết Ngữ cảnh",
@@ -175,8 +175,8 @@
175
175
  "desc": "Có tự động tạo chủ đề trong quá trình trò chuyện hay không, chỉ áp dụng trong chủ đề tạm thời",
176
176
  "title": "Tự động tạo chủ đề"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "Bật ngưỡng nén độ dài lịch sử"
178
+ "enableCompressHistory": {
179
+ "title": "Bật tóm tắt tự động lịch sử tin nhắn"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "Không giới hạn",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "Nhập từ gợi ý tùy chỉnh",
379
379
  "title": "Từ gợi ý tùy chỉnh"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "Mô hình lịch sử cuộc trò chuyện",
383
+ "modelDesc": "Chỉ định mô hình được sử dụng để nén lịch sử cuộc trò chuyện",
384
+ "title": "Tóm tắt tự động lịch sử cuộc trò chuyện"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "Mô hình viết lại câu hỏi",
383
388
  "modelDesc": "Mô hình được chỉ định để tối ưu hóa câu hỏi của người dùng",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "会话消息",
126
+ "historySummary": "历史总结",
126
127
  "rest": "剩余可用",
127
128
  "systemRole": "角色设定",
128
129
  "title": "上下文明细",
@@ -175,8 +175,8 @@
175
175
  "desc": "会话过程中是否自动创建话题,仅在临时话题中生效",
176
176
  "title": "自动创建话题"
177
177
  },
178
- "enableCompressThreshold": {
179
- "title": "是否开启历史消息长度压缩阈值"
178
+ "enableCompressHistory": {
179
+ "title": "开启历史消息自动总结"
180
180
  },
181
181
  "enableHistoryCount": {
182
182
  "alias": "不限制",
@@ -378,6 +378,11 @@
378
378
  "placeholder": "请输入自定义提示词",
379
379
  "title": "自定义提示词"
380
380
  },
381
+ "historyCompress": {
382
+ "label": "会话历史模型",
383
+ "modelDesc": "指定用于压缩会话历史的模型",
384
+ "title": "自动总结会话历史"
385
+ },
381
386
  "queryRewrite": {
382
387
  "label": "提问重写模型",
383
388
  "modelDesc": "指定用于优化用户提问的模型",
@@ -123,6 +123,7 @@
123
123
  },
124
124
  "tokenDetails": {
125
125
  "chats": "聊天訊息",
126
+ "historySummary": "歷史總結",
126
127
  "rest": "剩餘可用",
127
128
  "systemRole": "角色設定",
128
129
  "title": "上下文詳細資訊",