@lobehub/chat 1.118.5 → 1.118.7

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 (46) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/changelog/v1.json +18 -0
  3. package/locales/ar/models.json +3 -0
  4. package/locales/ar/setting.json +4 -0
  5. package/locales/bg-BG/models.json +3 -0
  6. package/locales/bg-BG/setting.json +4 -0
  7. package/locales/de-DE/models.json +3 -0
  8. package/locales/de-DE/setting.json +4 -0
  9. package/locales/en-US/models.json +3 -0
  10. package/locales/en-US/setting.json +4 -0
  11. package/locales/es-ES/models.json +3 -0
  12. package/locales/es-ES/setting.json +4 -0
  13. package/locales/fa-IR/models.json +3 -0
  14. package/locales/fa-IR/setting.json +4 -0
  15. package/locales/fr-FR/models.json +3 -0
  16. package/locales/fr-FR/setting.json +4 -0
  17. package/locales/it-IT/models.json +3 -0
  18. package/locales/it-IT/setting.json +4 -0
  19. package/locales/ja-JP/models.json +3 -0
  20. package/locales/ja-JP/setting.json +4 -0
  21. package/locales/ko-KR/models.json +3 -0
  22. package/locales/ko-KR/setting.json +4 -0
  23. package/locales/nl-NL/models.json +3 -0
  24. package/locales/nl-NL/setting.json +4 -0
  25. package/locales/pl-PL/models.json +3 -0
  26. package/locales/pl-PL/setting.json +4 -0
  27. package/locales/pt-BR/models.json +3 -0
  28. package/locales/pt-BR/setting.json +4 -0
  29. package/locales/ru-RU/models.json +3 -0
  30. package/locales/ru-RU/setting.json +4 -0
  31. package/locales/tr-TR/models.json +3 -0
  32. package/locales/tr-TR/setting.json +4 -0
  33. package/locales/vi-VN/models.json +3 -0
  34. package/locales/vi-VN/setting.json +4 -0
  35. package/locales/zh-CN/models.json +3 -0
  36. package/locales/zh-CN/setting.json +4 -0
  37. package/locales/zh-TW/models.json +3 -0
  38. package/locales/zh-TW/setting.json +4 -0
  39. package/package.json +1 -1
  40. package/packages/const/src/settings/agent.ts +1 -0
  41. package/packages/types/src/agent/chatConfig.ts +6 -0
  42. package/src/features/AgentSetting/AgentModal/index.tsx +9 -0
  43. package/src/locales/default/setting.ts +4 -0
  44. package/src/services/chat.ts +8 -1
  45. package/src/store/agent/slices/chat/selectors/__snapshots__/agent.test.ts.snap +1 -0
  46. package/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap +2 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.118.7](https://github.com/lobehub/lobe-chat/compare/v1.118.6...v1.118.7)
6
+
7
+ <sup>Released on **2025-08-30**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Update i18n.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Update i18n, closes [#8990](https://github.com/lobehub/lobe-chat/issues/8990) ([136bc5a](https://github.com/lobehub/lobe-chat/commit/136bc5a))
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.118.6](https://github.com/lobehub/lobe-chat/compare/v1.118.5...v1.118.6)
31
+
32
+ <sup>Released on **2025-08-29**</sup>
33
+
34
+ #### 💄 Styles
35
+
36
+ - **misc**: Support non-stream mode.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Styles
44
+
45
+ - **misc**: Support non-stream mode, closes [#8751](https://github.com/lobehub/lobe-chat/issues/8751) ([ce623bb](https://github.com/lobehub/lobe-chat/commit/ce623bb))
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.118.5](https://github.com/lobehub/lobe-chat/compare/v1.118.4...v1.118.5)
6
56
 
7
57
  <sup>Released on **2025-08-29**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Update i18n."
6
+ ]
7
+ },
8
+ "date": "2025-08-30",
9
+ "version": "1.118.7"
10
+ },
11
+ {
12
+ "children": {
13
+ "improvements": [
14
+ "Support non-stream mode."
15
+ ]
16
+ },
17
+ "date": "2025-08-29",
18
+ "version": "1.118.6"
19
+ },
2
20
  {
3
21
  "children": {
4
22
  "improvements": [
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "نموذجنا الرائد الأحدث والأقوى، يتميز بأداء ممتاز في معالجة اللغة الطبيعية، الحسابات الرياضية، والاستدلال — إنه لاعب شامل مثالي."
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "نحن سعداء بإطلاق grok-code-fast-1، وهو نموذج استدلال سريع وفعال من حيث التكلفة، يتميز بأداء ممتاز في ترميز الوكلاء."
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B هو نموذج لغوي يجمع بين الإبداع والذكاء من خلال دمج عدة نماذج رائدة."
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "تحديد عدد الرسائل التاريخية",
238
238
  "unlimited": "غير محدود"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "تمكين الإخراج المتدفق لعرض الاستجابات في الوقت الفعلي. عند التعطيل، يتم عرض الاستجابة الكاملة فقط.",
242
+ "title": "تمكين الإخراج المتدفق"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "عدد الرسائل التي يتم إرفاقها في كل طلب (تشمل الأسئلة والأجوبة الجديدة. يُحسب كل سؤال وجواب كرسالة واحدة)",
242
246
  "title": "عدد الرسائل المرفقة"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "Нашият най-нов и най-мощен флагмански модел, който се отличава с изключителни резултати в обработката на естествен език, математическите изчисления и разсъжденията — перфектен универсален играч."
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "С удоволствие представяме grok-code-fast-1, бърз и икономичен модел за извод, който се отличава с отлични резултати при кодиране на агенти."
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B е езиков модел, който комбинира креативност и интелигентност, обединявайки множество водещи модели."
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "Ограничаване на броя на съобщенията в историята",
238
238
  "unlimited": "Неограничен брой съобщения в историята"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "Активирайте поточно предаване, за да показвате отговорите в реално време. Ако е деактивирано, ще се показва само пълният отговор.",
242
+ "title": "Активиране на поточно предаване"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "Брой исторически съобщения, носени с всяка заявка",
242
246
  "title": "Брой прикачени съобщения в историята"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "Unser neuestes und leistungsstärkstes Flaggschiffmodell, das in der Verarbeitung natürlicher Sprache, mathematischen Berechnungen und logischem Denken herausragende Leistungen erbringt – ein perfekter Allrounder."
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "Wir freuen uns, grok-code-fast-1 vorzustellen, ein schnelles und kosteneffizientes Inferenzmodell, das sich durch hervorragende Leistung bei der Agentencodierung auszeichnet."
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B ist ein Sprachmodell, das Kreativität und Intelligenz kombiniert und mehrere führende Modelle integriert."
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "Historiennachrichten begrenzen",
238
238
  "unlimited": "Unbegrenzte Historiennachrichten"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "Aktivieren Sie den Streaming-Ausgang, um Antworten in Echtzeit anzuzeigen. Wenn deaktiviert, wird nur die vollständige Antwort angezeigt.",
242
+ "title": "Streaming-Ausgabe aktivieren"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "Anzahl der Nachrichten pro Anfrage (einschließlich der neuesten Fragen und Antworten. Jede Frage und Antwort zählt als 1)",
242
246
  "title": "Anzahl der mitgelieferten Nachrichten"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "Our latest and most powerful flagship model, excelling in natural language processing, mathematical computation, and reasoning — a perfect all-rounder."
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "We are excited to introduce grok-code-fast-1, a fast and cost-effective inference model that excels in agent coding."
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B is a language model that combines creativity and intelligence by merging multiple top models."
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "Limit History Message Count",
238
238
  "unlimited": "Unlimited history message count"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "Enable streaming output to display responses in real-time. When disabled, only the complete response is shown.",
242
+ "title": "Enable Streaming Output"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "Number of historical messages carried with each request",
242
246
  "title": "Attached History Message Count"
@@ -1581,6 +1581,9 @@
1581
1581
  "grok-4": {
1582
1582
  "description": "Nuestro modelo insignia más reciente y potente, que destaca en procesamiento de lenguaje natural, cálculo matemático y razonamiento — un competidor versátil y perfecto."
1583
1583
  },
1584
+ "grok-code-fast-1": {
1585
+ "description": "Nos complace presentar grok-code-fast-1, un modelo de inferencia rápido y económico que destaca en la codificación de agentes."
1586
+ },
1584
1587
  "gryphe/mythomax-l2-13b": {
1585
1588
  "description": "MythoMax l2 13B es un modelo de lenguaje que combina creatividad e inteligencia, fusionando múltiples modelos de vanguardia."
1586
1589
  },
@@ -237,6 +237,10 @@
237
237
  "title": "Limitar número de mensajes históricos",
238
238
  "unlimited": "Sin límite de mensajes históricos"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "Habilita la salida en streaming para mostrar la respuesta en tiempo real. Si se desactiva, solo se mostrará la respuesta completa.",
242
+ "title": "Habilitar salida en streaming"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "Número de mensajes incluidos en cada solicitud (incluyendo las preguntas más recientes. Cada pregunta y respuesta se cuenta como 1)",
242
246
  "title": "Número de mensajes incluidos"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "جدیدترین و قدرتمندترین مدل پرچمدار ما که در پردازش زبان طبیعی، محاسبات ریاضی و استدلال عملکردی برجسته دارد — یک انتخاب همه‌کاره بی‌نظیر است."
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "ما خوشحالیم که grok-code-fast-1 را معرفی کنیم، مدلی سریع و مقرون‌به‌صرفه برای استنتاج که در کدگذاری نماینده عملکرد برجسته‌ای دارد."
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B یک مدل زبانی است که خلاقیت و هوش را با ترکیب چندین مدل برتر به هم پیوند می‌دهد."
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "محدودیت تعداد پیام‌های تاریخی",
238
238
  "unlimited": "بدون محدودیت در تعداد پیام‌های تاریخی"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "فعال‌سازی خروجی جریانی برای نمایش پاسخ‌ها به‌صورت زنده. در صورت غیرفعال بودن، فقط پاسخ کامل نمایش داده می‌شود.",
242
+ "title": "فعال‌سازی خروجی جریانی"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "تعداد پیام‌هایی که در هر درخواست ارسال می‌شوند (شامل آخرین سوال نوشته‌شده. هر سوال و پاسخ به‌عنوان 1 محاسبه می‌شود)",
242
246
  "title": "تعداد پیام‌های همراه"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "Notre tout dernier modèle phare, le plus puissant, excelle dans le traitement du langage naturel, le calcul mathématique et le raisonnement — un véritable champion polyvalent."
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "Nous sommes ravis de présenter grok-code-fast-1, un modèle d'inférence rapide et économique, excellent dans le codage des agents."
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B est un modèle linguistique combinant créativité et intelligence, intégrant plusieurs modèles de pointe."
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "Limite du nombre de messages historiques",
238
238
  "unlimited": "Aucune limite sur le nombre de messages historiques"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "Activez la diffusion en continu pour afficher les réponses en temps réel. Si désactivé, seule la réponse complète sera affichée.",
242
+ "title": "Activer la diffusion en continu"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "Nombre de messages historiques à inclure dans chaque requête",
242
246
  "title": "Nombre de messages historiques inclus"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "Il nostro modello di punta più recente e potente, eccellente nell'elaborazione del linguaggio naturale, nel calcolo matematico e nel ragionamento — un vero campione versatile e completo."
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "Siamo lieti di presentare grok-code-fast-1, un modello di inferenza rapido ed economico, eccellente nella codifica degli agenti."
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B è un modello linguistico che combina creatività e intelligenza, unendo diversi modelli di punta."
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "Limita il numero di messaggi storici",
238
238
  "unlimited": "Numero illimitato di messaggi storici"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "Abilita l'output in streaming per visualizzare la risposta in tempo reale. Se disabilitato, verrà mostrata solo la risposta completa.",
242
+ "title": "Abilita output in streaming"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "Numero di messaggi inclusi in ogni richiesta (inclusi gli ultimi messaggi scritti, ogni domanda e risposta conta come 1)",
242
246
  "title": "Numero di messaggi inclusi"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "私たちの最新かつ最強のフラッグシップモデルであり、自然言語処理、数学計算、推論において卓越した性能を発揮します——まさに完璧な万能型プレイヤーです。"
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "私たちは、迅速かつ経済的な推論モデルであるgrok-code-fast-1を発表できることを嬉しく思います。このモデルはエージェントのコーディングに優れた性能を発揮します。"
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13Bは複数のトップモデルを統合した創造性と知性を兼ね備えた言語モデルです。"
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "過去メッセージ数を制限する",
238
238
  "unlimited": "過去メッセージ数を制限しない"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "リアルタイムで応答を表示するためにストリーミング出力を有効にします。無効にすると、完全な応答のみが表示されます。",
242
+ "title": "ストリーミング出力を有効にする"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "リクエストごとに含まれる過去メッセージの数",
242
246
  "title": "過去メッセージ数"
@@ -1581,6 +1581,9 @@
1581
1581
  "grok-4": {
1582
1582
  "description": "저희의 최신이자 가장 강력한 플래그십 모델로, 자연어 처리, 수학 계산 및 추론에서 뛰어난 성능을 자랑합니다 — 완벽한 만능형 선수입니다."
1583
1583
  },
1584
+ "grok-code-fast-1": {
1585
+ "description": "우리는 에이전트 코딩에 탁월한 빠르고 경제적인 추론 모델인 grok-code-fast-1을 출시하게 되어 기쁩니다."
1586
+ },
1584
1587
  "gryphe/mythomax-l2-13b": {
1585
1588
  "description": "MythoMax l2 13B는 여러 최상위 모델을 통합한 창의성과 지능이 결합된 언어 모델입니다."
1586
1589
  },
@@ -237,6 +237,10 @@
237
237
  "title": "이전 메시지 수 제한",
238
238
  "unlimited": "이전 메시지 수 제한 없음"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "실시간으로 응답을 표시하려면 스트리밍 출력을 활성화하세요. 비활성화하면 전체 응답만 표시됩니다.",
242
+ "title": "스트리밍 출력 활성화"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "요청당 포함되는 이전 메시지 수",
242
246
  "title": "이전 메시지 수"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "Ons nieuwste en krachtigste vlaggenschipmodel, uitmuntend in natuurlijke taalverwerking, wiskundige berekeningen en redeneren — een perfecte allrounder."
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "We zijn verheugd om grok-code-fast-1 te introduceren, een snel en kostenefficiënt inferentiemodel dat uitblinkt in agentcodering."
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B is een taalmodel dat creativiteit en intelligentie combineert door meerdere topmodellen te integreren."
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "Berichtgeschiedenis beperken",
238
238
  "unlimited": "Onbeperkt aantal berichten in de geschiedenis"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "Schakel streaming-uitvoer in om reacties in realtime weer te geven. Als dit is uitgeschakeld, wordt alleen de volledige reactie weergegeven.",
242
+ "title": "Streaming-uitvoer inschakelen"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "Aantal berichten dat bij elke aanvraag wordt meegenomen (inclusief de meest recente vraag. Elke vraag en antwoord tellen als 1)",
242
246
  "title": "Berichtaantal meenemen"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "Nasz najnowszy i najpotężniejszy model flagowy, który wyróżnia się doskonałymi wynikami w przetwarzaniu języka naturalnego, obliczeniach matematycznych i rozumowaniu — to idealny wszechstronny zawodnik."
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "Z radością przedstawiamy grok-code-fast-1, szybki i ekonomiczny model inferencyjny, który doskonale sprawdza się w kodowaniu agentów."
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B to model językowy łączący kreatywność i inteligencję, zintegrowany z wieloma wiodącymi modelami."
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "Ograniczenie liczby wiadomości w historii",
238
238
  "unlimited": "Bez limitu wiadomości w historii"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "Włącz strumieniowe wyświetlanie odpowiedzi w czasie rzeczywistym. Po wyłączeniu wyświetlana jest tylko pełna odpowiedź.",
242
+ "title": "Włącz strumieniowe wyświetlanie"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "Liczba wiadomości przesyłanych w jednym żądaniu (obejmuje najnowsze pytania i odpowiedzi, gdzie każde pytanie i odpowiedź liczy się jako 1)",
242
246
  "title": "Liczba wiadomości"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "Nosso mais recente e poderoso modelo principal, com desempenho excepcional em processamento de linguagem natural, cálculo matemático e raciocínio — um competidor versátil perfeito."
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "Temos o prazer de apresentar o grok-code-fast-1, um modelo de inferência rápido e econômico, que se destaca na codificação de agentes."
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B é um modelo de linguagem que combina criatividade e inteligência, integrando vários modelos de ponta."
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "Limitar número de mensagens de histórico",
238
238
  "unlimited": "Sem limite de mensagens de histórico"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "Ative a saída em fluxo para exibir respostas em tempo real. Quando desativado, apenas a resposta completa será exibida.",
242
+ "title": "Ativar saída em fluxo"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "Número de mensagens incluídas em cada solicitação (incluindo a última pergunta feita. Cada pergunta e resposta contam como 1)",
242
246
  "title": "Número de mensagens incluídas"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "Наша новейшая и самая мощная флагманская модель, демонстрирующая выдающиеся результаты в обработке естественного языка, математических вычислениях и логическом рассуждении — идеальный универсальный инструмент."
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "Мы рады представить grok-code-fast-1 — быстрый и экономичный модель вывода, которая отлично справляется с кодированием агентов."
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B — это языковая модель, объединяющая креативность и интеллект, основанная на нескольких ведущих моделях."
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "Ограничение истории сообщений",
238
238
  "unlimited": "Без ограничения истории сообщений"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "Включите потоковую передачу для отображения ответа в реальном времени. Если отключено, будет показан только полный ответ.",
242
+ "title": "Включить потоковую передачу"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "Количество сообщений, передаваемых с каждым запросом",
242
246
  "title": "Количество сообщений в истории"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "En yeni ve en güçlü amiral gemisi modelimiz, doğal dil işleme, matematiksel hesaplama ve akıl yürütme alanlarında üstün performans sergiliyor — mükemmel bir çok yönlü oyuncu."
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "Hızlı ve ekonomik bir çıkarım modeli olan grok-code-fast-1'i sunmaktan mutluluk duyuyoruz; ajan kodlamasında mükemmel performans sergiler."
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B, birden fazla üst düzey modelin birleşimiyle yaratıcı ve zeka odaklı bir dil modelidir."
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "Geçmiş Mesaj Sayısı Sınırlama",
238
238
  "unlimited": "Sınırsız geçmiş mesaj sayısı"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "Yanıtları gerçek zamanlı göstermek için akışlı çıktıyı etkinleştirin. Devre dışı bırakıldığında yalnızca tam yanıt gösterilir.",
242
+ "title": "Akışlı Çıktıyı Etkinleştir"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "Her istekle taşınan tarihsel mesaj sayısı",
242
246
  "title": "Eklenen Geçmiş Mesaj Sayısı"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "Mô hình hàng đầu mới nhất và mạnh mẽ nhất của chúng tôi, thể hiện xuất sắc trong xử lý ngôn ngữ tự nhiên, tính toán toán học và suy luận — một lựa chọn toàn diện hoàn hảo."
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "Chúng tôi rất vui mừng giới thiệu grok-code-fast-1, một mô hình suy luận nhanh và tiết kiệm chi phí, thể hiện xuất sắc trong việc mã hóa đại lý."
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B là mô hình ngôn ngữ kết hợp giữa sáng tạo và trí thông minh, kết hợp nhiều mô hình hàng đầu."
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "Giới hạn số lượng tin nhắn lịch sử",
238
238
  "unlimited": "Không giới hạn số lượng tin nhắn lịch sử"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "Bật phát trực tiếp để hiển thị phản hồi theo thời gian thực. Tắt sẽ chỉ hiển thị phản hồi đầy đủ.",
242
+ "title": "Bật phát trực tiếp"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "Số lượng tin nhắn được gửi mỗi lần yêu cầu (bao gồm cả câu hỏi mới nhất. Mỗi câu hỏi và câu trả lời đều tính là 1)",
242
246
  "title": "Số lượng tin nhắn đi kèm"
@@ -1583,6 +1583,9 @@
1583
1583
  "grok-4": {
1584
1584
  "description": "我们最新最强大的旗舰模型,在自然语言处理、数学计算和推理方面表现卓越 —— 是一款完美的全能型选手。"
1585
1585
  },
1586
+ "grok-code-fast-1": {
1587
+ "description": "我们很高兴推出 grok-code-fast-1,这是一款快速且经济高效的推理模型,在代理编码方面表现出色。"
1588
+ },
1586
1589
  "gryphe/mythomax-l2-13b": {
1587
1590
  "description": "MythoMax l2 13B 是一款合并了多个顶尖模型的创意与智能相结合的语言模型。"
1588
1591
  },
@@ -237,6 +237,10 @@
237
237
  "title": "限制历史消息数",
238
238
  "unlimited": "不限历史消息数"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "启用流式输出以实时显示响应。禁用后仅显示完整响应。",
242
+ "title": "启用流式输出"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "每次请求携带的消息数(包括最新编写的提问。每个提问和回答都计算1)",
242
246
  "title": "附带消息数"
@@ -1581,6 +1581,9 @@
1581
1581
  "grok-4": {
1582
1582
  "description": "我們最新最強大的旗艦模型,在自然語言處理、數學計算和推理方面表現卓越 —— 是一款完美的全能型選手。"
1583
1583
  },
1584
+ "grok-code-fast-1": {
1585
+ "description": "我們很高興推出 grok-code-fast-1,這是一款快速且經濟高效的推理模型,在代理編碼方面表現出色。"
1586
+ },
1584
1587
  "gryphe/mythomax-l2-13b": {
1585
1588
  "description": "MythoMax l2 13B 是一款合併了多個頂尖模型的創意與智能相結合的語言模型。"
1586
1589
  },
@@ -237,6 +237,10 @@
237
237
  "title": "限制歷史訊息數",
238
238
  "unlimited": "不限歷史訊息數"
239
239
  },
240
+ "enableStreaming": {
241
+ "desc": "啟用串流輸出以即時顯示回應。停用後僅顯示完整回應。",
242
+ "title": "啟用串流輸出"
243
+ },
240
244
  "historyCount": {
241
245
  "desc": "每次請求攜帶的歷史訊息數",
242
246
  "title": "附帶歷史訊息數"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.118.5",
3
+ "version": "1.118.7",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -29,6 +29,7 @@ export const DEFAULT_AGENT_CHAT_CONFIG: LobeAgentChatConfig = {
29
29
  enableCompressHistory: true,
30
30
  enableHistoryCount: true,
31
31
  enableReasoning: false,
32
+ enableStreaming: true,
32
33
  historyCount: 20,
33
34
  reasoningBudgetToken: 1024,
34
35
  searchFCModel: DEFAULT_AGENT_SEARCH_FC_MODEL,
@@ -16,6 +16,11 @@ export interface LobeAgentChatConfig {
16
16
 
17
17
  enableMaxTokens?: boolean;
18
18
 
19
+ /**
20
+ * 是否开启流式输出
21
+ */
22
+ enableStreaming?: boolean;
23
+
19
24
  /**
20
25
  * 是否开启推理
21
26
  */
@@ -68,6 +73,7 @@ export const AgentChatConfigSchema = z.object({
68
73
  enableMaxTokens: z.boolean().optional(),
69
74
  enableReasoning: z.boolean().optional(),
70
75
  enableReasoningEffort: z.boolean().optional(),
76
+ enableStreaming: z.boolean().optional(),
71
77
  historyCount: z.number().optional(),
72
78
  reasoningBudgetToken: z.number().optional(),
73
79
  searchFCModel: z
@@ -31,6 +31,15 @@ const AgentModal = memo(() => {
31
31
  name: '_modalConfig',
32
32
  tag: 'model',
33
33
  },
34
+ {
35
+ children: <Switch />,
36
+ desc: t('settingChat.enableStreaming.desc'),
37
+ label: t('settingChat.enableStreaming.title'),
38
+ layout: 'horizontal',
39
+ minWidth: undefined,
40
+ name: 'enableStreaming',
41
+ valuePropName: 'checked',
42
+ },
34
43
  {
35
44
  children: <SliderWithInput max={2} min={0} step={0.1} />,
36
45
  desc: t('settingModel.temperature.desc'),
@@ -241,6 +241,10 @@ export default {
241
241
  title: '限制历史消息数',
242
242
  unlimited: '不限历史消息数',
243
243
  },
244
+ enableStreaming: {
245
+ desc: '启用流式输出以实时显示响应。禁用后仅显示完整响应。',
246
+ title: '启用流式输出',
247
+ },
244
248
  historyCount: {
245
249
  desc: '每次请求携带的消息数(包括最新编写的提问。每个提问和回答都计算1)',
246
250
  title: '附带消息数',
@@ -365,8 +365,15 @@ class ChatService {
365
365
  ? 'responses'
366
366
  : undefined;
367
367
 
368
+ // Get the chat config to check streaming preference
369
+ const chatConfig = agentChatConfigSelectors.currentChatConfig(getAgentStoreState());
370
+
368
371
  const payload = merge(
369
- { model: DEFAULT_AGENT_CONFIG.model, stream: true, ...DEFAULT_AGENT_CONFIG.params },
372
+ {
373
+ model: DEFAULT_AGENT_CONFIG.model,
374
+ stream: chatConfig.enableStreaming !== false, // Default to true if not set
375
+ ...DEFAULT_AGENT_CONFIG.params,
376
+ },
370
377
  { ...res, apiMode, model },
371
378
  );
372
379
 
@@ -9,6 +9,7 @@ exports[`agentSelectors > defaultAgentConfig > should merge DEFAULT_AGENT_CONFIG
9
9
  "enableCompressHistory": true,
10
10
  "enableHistoryCount": true,
11
11
  "enableReasoning": false,
12
+ "enableStreaming": true,
12
13
  "historyCount": 20,
13
14
  "reasoningBudgetToken": 1024,
14
15
  "searchFCModel": {
@@ -112,6 +112,7 @@ exports[`settingsSelectors > defaultAgent > should merge DEFAULT_AGENT and s.set
112
112
  "enableCompressHistory": true,
113
113
  "enableHistoryCount": true,
114
114
  "enableReasoning": false,
115
+ "enableStreaming": true,
115
116
  "historyCount": 20,
116
117
  "reasoningBudgetToken": 1024,
117
118
  "searchFCModel": {
@@ -156,6 +157,7 @@ exports[`settingsSelectors > defaultAgentConfig > should merge DEFAULT_AGENT_CON
156
157
  "enableCompressHistory": true,
157
158
  "enableHistoryCount": true,
158
159
  "enableReasoning": false,
160
+ "enableStreaming": true,
159
161
  "historyCount": 20,
160
162
  "reasoningBudgetToken": 1024,
161
163
  "searchFCModel": {