Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

♻️ refactor(agent-settings): consolidate Chat tab into Params popover, drop dead auto-topic feature (#14885)

Arvin Xu3bcf6a8d7277
diff --git a/docs/self-hosting/environment-variables/basic.mdx b/docs/self-hosting/environment-variables/basic.mdx
index 4a6447ee34f..264799414c9 100644
--- a/docs/self-hosting/environment-variables/basic.mdx
+++ b/docs/self-hosting/environment-variables/basic.mdx
@@ -52,18 +52,18 @@ When using the `turn` mode, the API Keys will be retrieved in a polling manner a
The `DEFAULT_AGENT_CONFIG` is used to configure the default settings for the LobeHub default agent. It supports various data types and structures, including key-value pairs, nested fields, array values, and more. The table below provides detailed information on the configuration options, examples, and corresponding explanations for the `DEFAULT_AGENT_CONFIG` environment variable:
-| Configuration Type | Example | Explanation |
-| ----------------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
-| Basic Key-Value Pair | `model=gpt-4` | Set the model to `gpt-4`. |
-| Nested Field | `tts.sttLocale=en-US` | Set the language locale for the text-to-speech service to `en-US`. |
-| Array | `plugins=search-engine,lobe-image-designer` | Enable the `search-engine` and `lobe-image-designer` plugins. |
-| Chinese Comma | `plugins=search-engine,lobe-image-designer` | Same as above, demonstrating support for Chinese comma separation. |
-| Multiple Configurations | `model=glm-4;provider=zhipu` | Set the model to `glm-4` and the model provider to `zhipu`. |
-| Numeric Value | `params.max_tokens=300`, `chatConfig.historyCount=5` | Set the maximum tokens to `300`, Set the number of historical messages to 5. |
-| Boolean Value | `chatConfig.enableAutoCreateTopic=true`, `chatConfig.enableCompressThreshold=true`, `chatConfig.enableHistoryCount=true` | Enable automatic topic creation, History length compression threshold, number of historical records. |
-| Special Characters | `inputTemplate="Hello; I am a bot;"` | Set the input template to `Hello; I am a bot;`. |
-| Error Handling | `model=gpt-4;maxToken` | Ignore invalid entry `maxToken` and only parse `model=gpt-4`. |
-| Value Override | `model=gpt-4;model=gpt-4-1106-preview` | If a key is repeated, use the value that appears last; in this case, the value of `model` is `gpt-4-1106-preview`. |
+| Configuration Type | Example | Explanation |
+| ----------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
+| Basic Key-Value Pair | `model=gpt-4` | Set the model to `gpt-4`. |
+| Nested Field | `tts.sttLocale=en-US` | Set the language locale for the text-to-speech service to `en-US`. |
+| Array | `plugins=search-engine,lobe-image-designer` | Enable the `search-engine` and `lobe-image-designer` plugins. |
+| Chinese Comma | `plugins=search-engine,lobe-image-designer` | Same as above, demonstrating support for Chinese comma separation. |
+| Multiple Configurations | `model=glm-4;provider=zhipu` | Set the model to `glm-4` and the model provider to `zhipu`. |
+| Numeric Value | `params.max_tokens=300`, `chatConfig.historyCount=5` | Set the maximum tokens to `300`, Set the number of historical messages to 5. |
+| Boolean Value | `chatConfig.enableHistoryCount=true`, `chatConfig.enableCompressThreshold=true`, `chatConfig.enableStreaming=true` | Enable history length limit, history length compression threshold, and streaming output. |
+| Special Characters | `inputTemplate="Hello; I am a bot;"` | Set the input template to `Hello; I am a bot;`. |
+| Error Handling | `model=gpt-4;maxToken` | Ignore invalid entry `maxToken` and only parse `model=gpt-4`. |
+| Value Override | `model=gpt-4;model=gpt-4-1106-preview` | If a key is repeated, use the value that appears last; in this case, the value of `model` is `gpt-4-1106-preview`. |
Further reading:
diff --git a/docs/self-hosting/environment-variables/basic.zh-CN.mdx b/docs/self-hosting/environment-variables/basic.zh-CN.mdx
index 146963766e2..8e7d7f1145f 100644
--- a/docs/self-hosting/environment-variables/basic.zh-CN.mdx
+++ b/docs/self-hosting/environment-variables/basic.zh-CN.mdx
@@ -49,18 +49,18 @@ LobeHub 在部署时提供了一些额外的配置项,你可以使用环境变
`DEFAULT_AGENT_CONFIG` 用于配置 LobeHub 默认助理的默认配置。它支持多种数据类型和结构,包括键值对、嵌套字段、数组值等。下表详细说明了 `DEFAULT_AGENT_CONFIG` 环境变量的配置项、示例以及相应解释:
-| 配置项类型 | 示例 | 解释 |
-| ----- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
-| 基本键值对 | `model=gpt-4` | 设置模型为 `gpt-4`。 |
-| 嵌套字段 | `tts.sttLocale=en-US` | 设置文本到语音服务的语言区域为 `en-US`。 |
-| 数组 | `plugins=search-engine,lobe-image-designer` | 启用 `search-engine` 和 `lobe-image-designer` 插件。 |
-| 中文逗号 | `plugins=search-engine,lobe-image-designer` | 同上,演示支持中文逗号分隔。 |
-| 多个配置项 | `model=glm-4;provider=zhipu` | 设置模型为 `glm-4` 且模型服务商为 `zhipu`。 |
-| 数字值 | `params.max_tokens=300`, `chatConfig.historyCount=5` | 设置最大令牌数为 `300`,设置历史消息条数为 5。 |
-| 布尔值 | `chatConfig.enableAutoCreateTopic=true`,`chatConfig.enableCompressThreshold=true`, `chatConfig.enableHistoryCount=true` | 启用自动创建主题,历史长度压缩阈值,历史记录条数。 |
-| 特殊字符 | `inputTemplate="Hello; I am a bot;"` | 设置输入模板为 `Hello; I am a bot;`。 |
-| 错误处理 | `model=gpt-4;maxToken` | 忽略无效条目 `maxToken`,仅解析出 `model=gpt-4`。 |
-| 值覆盖 | `model=gpt-4;model=gpt-4-1106-preview` | 如果键重复,使用最后一次出现的值,此处 `model` 的值为 `gpt-4-1106-preview`。 |
+| 配置项类型 | 示例 | 解释 |
+| ----- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
+| 基本键值对 | `model=gpt-4` | 设置模型为 `gpt-4`。 |
+| 嵌套字段 | `tts.sttLocale=en-US` | 设置文本到语音服务的语言区域为 `en-US`。 |
+| 数组 | `plugins=search-engine,lobe-image-designer` | 启用 `search-engine` 和 `lobe-image-designer` 插件。 |
+| 中文逗号 | `plugins=search-engine,lobe-image-designer` | 同上,演示支持中文逗号分隔。 |
+| 多个配置项 | `model=glm-4;provider=zhipu` | 设置模型为 `glm-4` 且模型服务商为 `zhipu`。 |
+| 数字值 | `params.max_tokens=300`, `chatConfig.historyCount=5` | 设置最大令牌数为 `300`,设置历史消息条数为 5。 |
+| 布尔值 | `chatConfig.enableHistoryCount=true`,`chatConfig.enableCompressThreshold=true`, `chatConfig.enableStreaming=true` | 启用历史消息数量限制,历史长度压缩阈值,流式输出。 |
+| 特殊字符 | `inputTemplate="Hello; I am a bot;"` | 设置输入模板为 `Hello; I am a bot;`。 |
+| 错误处理 | `model=gpt-4;maxToken` | 忽略无效条目 `maxToken`,仅解析出 `model=gpt-4`。 |
+| 值覆盖 | `model=gpt-4;model=gpt-4-1106-preview` | 如果键重复,使用最后一次出现的值,此处 `model` 的值为 `gpt-4-1106-preview`。 |
相关阅读:
diff --git a/locales/ar/setting.json b/locales/ar/setting.json
index 5a1f59ea188..697b9f2e200 100644
--- a/locales/ar/setting.json
+++ b/locales/ar/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "استيراد من رابط",
"agentSkillModal.url.urlPlaceholder": "https://example.com/path/to/SKILL.md",
"agentSkillTag": "مهارة الوكيل",
- "agentTab.chat": "تفضيلات المحادثة",
"agentTab.documents": "المستندات",
"agentTab.meta": "معلومات الوكيل",
- "agentTab.modal": "إعدادات النموذج",
"agentTab.opening": "إعدادات البداية",
"agentTab.plugin": "إعدادات المهارات",
"agentTab.prompt": "ملف تعريف الوكيل",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "لون السمة المخصص",
"settingAppearance.primaryColor.title": "لون السمة",
"settingAppearance.title": "مظهر التطبيق",
- "settingChat.autoCreateTopicThreshold.desc": "إنشاء موضوع تلقائيًا عند تجاوز عدد الرسائل الحالية هذه القيمة",
- "settingChat.autoCreateTopicThreshold.title": "حد الرسائل",
"settingChat.chatStyleType.title": "نمط نافذة الدردشة",
"settingChat.chatStyleType.type.chat": "وضع المحادثة",
"settingChat.chatStyleType.type.docs": "وضع الصفحة",
"settingChat.compressThreshold.desc": "عند تجاوز عدد الرسائل غير المضغوطة هذه القيمة، سيتم تطبيق الضغط",
"settingChat.compressThreshold.title": "حد ضغط طول سجل الرسائل",
- "settingChat.enableAutoCreateTopic.desc": "ما إذا كان سيتم إنشاء موضوع تلقائيًا أثناء المحادثة، فعال فقط في المواضيع المؤقتة",
- "settingChat.enableAutoCreateTopic.title": "إنشاء موضوع تلقائيًا",
"settingChat.enableAutoScrollOnStreaming.desc": "تجاوز الإعداد العام لهذا المساعد",
"settingChat.enableAutoScrollOnStreaming.title": "التمرير التلقائي أثناء استجابة الذكاء الاصطناعي",
"settingChat.enableCompressHistory.title": "تمكين التلخيص التلقائي لسجل الدردشة",
diff --git a/locales/bg-BG/setting.json b/locales/bg-BG/setting.json
index e04c1602e42..a9a752ed84c 100644
--- a/locales/bg-BG/setting.json
+++ b/locales/bg-BG/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "Импортиране от URL",
"agentSkillModal.url.urlPlaceholder": "https://example.com/път/до/SKILL.md",
"agentSkillTag": "Умение на агент",
- "agentTab.chat": "Предпочитания за чат",
"agentTab.documents": "Документи",
"agentTab.meta": "Информация за агента",
- "agentTab.modal": "Настройки на модела",
"agentTab.opening": "Начални настройки",
"agentTab.plugin": "Настройки на уменията",
"agentTab.prompt": "Профил на агента",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "Персонализиран основен цвят на темата",
"settingAppearance.primaryColor.title": "Цвят на темата",
"settingAppearance.title": "Външен вид на приложението",
- "settingChat.autoCreateTopicThreshold.desc": "Автоматично създаване на тема, когато броят на съобщенията надвиши тази стойност",
- "settingChat.autoCreateTopicThreshold.title": "Праг за съобщения",
"settingChat.chatStyleType.title": "Стил на чат прозореца",
"settingChat.chatStyleType.type.chat": "Режим на разговор",
"settingChat.chatStyleType.type.docs": "Режим на страница",
"settingChat.compressThreshold.desc": "Когато историята на съобщенията надвиши тази стойност, ще се приложи компресия",
"settingChat.compressThreshold.title": "Праг за компресия на историята",
- "settingChat.enableAutoCreateTopic.desc": "Автоматично създаване на тема по време на разговор (валидно само за временни теми)",
- "settingChat.enableAutoCreateTopic.title": "Автоматично създаване на тема",
"settingChat.enableAutoScrollOnStreaming.desc": "Замени глобалната настройка за този асистент",
"settingChat.enableAutoScrollOnStreaming.title": "Автоматично превъртане по време на отговор от ИИ",
"settingChat.enableCompressHistory.title": "Активирай автоматично обобщаване на историята",
diff --git a/locales/de-DE/setting.json b/locales/de-DE/setting.json
index 446d86406be..80d6c3dc25b 100644
--- a/locales/de-DE/setting.json
+++ b/locales/de-DE/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "Aus URL importieren",
"agentSkillModal.url.urlPlaceholder": "https://example.com/path/to/SKILL.md",
"agentSkillTag": "Agenten-Skill",
- "agentTab.chat": "Chat-Einstellungen",
"agentTab.documents": "Dokumente",
"agentTab.meta": "Agenteninformationen",
- "agentTab.modal": "Modelleinstellungen",
"agentTab.opening": "Startnachricht",
"agentTab.plugin": "Fähigkeitseinstellungen",
"agentTab.prompt": "Agentenprofil",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "Benutzerdefinierte Themenfarbe",
"settingAppearance.primaryColor.title": "Themenfarbe",
"settingAppearance.title": "Anwendungsdarstellung",
- "settingChat.autoCreateTopicThreshold.desc": "Ein Thema wird automatisch erstellt, wenn die aktuelle Nachrichtenanzahl diesen Wert überschreitet",
- "settingChat.autoCreateTopicThreshold.title": "Nachrichtenschwelle",
"settingChat.chatStyleType.title": "Chatfenster-Stil",
"settingChat.chatStyleType.type.chat": "Konversationsmodus",
"settingChat.chatStyleType.type.docs": "Seitenmodus",
"settingChat.compressThreshold.desc": "Wenn die unkomprimierte Nachrichtenhistorie diesen Wert überschreitet, wird eine Komprimierung angewendet",
"settingChat.compressThreshold.title": "Komprimierungsschwelle für Nachrichtenhistorie",
- "settingChat.enableAutoCreateTopic.desc": "Ob während des Gesprächs automatisch ein Thema erstellt wird, nur bei temporären Themen wirksam",
- "settingChat.enableAutoCreateTopic.title": "Automatische Themaerstellung",
"settingChat.enableAutoScrollOnStreaming.desc": "Globale Einstellung für diesen Assistenten überschreiben",
"settingChat.enableAutoScrollOnStreaming.title": "Automatisches Scrollen während der KI-Antwort",
"settingChat.enableCompressHistory.title": "Automatische Zusammenfassung der Chat-Historie aktivieren",
diff --git a/locales/en-US/setting.json b/locales/en-US/setting.json
index 62152cec422..5aa1ef6c435 100644
--- a/locales/en-US/setting.json
+++ b/locales/en-US/setting.json
@@ -180,8 +180,6 @@
"agentSkillModal.url.title": "Import from URL",
"agentSkillModal.url.urlPlaceholder": "https://example.com/path/to/SKILL.md",
"agentSkillTag": "Agent Skill",
- "agentTab.chat": "Chat Preferences",
- "agentTab.modal": "Model Settings",
"agentTab.opening": "Opening Settings",
"agentTab.plugin": "Skill Settings",
"agentTab.prompt": "Agent Profile",
@@ -529,15 +527,11 @@
"settingAppearance.primaryColor.desc": "Custom theme color",
"settingAppearance.primaryColor.title": "Theme Color",
"settingAppearance.title": "Application Appearance",
- "settingChat.autoCreateTopicThreshold.desc": "Automatically create a topic when the current message count exceeds this value",
- "settingChat.autoCreateTopicThreshold.title": "Message Threshold",
"settingChat.chatStyleType.title": "Chat Window Style",
"settingChat.chatStyleType.type.chat": "Conversation Mode",
"settingChat.chatStyleType.type.docs": "Page Mode",
"settingChat.compressThreshold.desc": "When the uncompressed history messages exceed this value, compression will be applied",
"settingChat.compressThreshold.title": "History Message Length Compression Threshold",
- "settingChat.enableAutoCreateTopic.desc": "Whether to automatically create a topic during the conversation, only effective in temporary topics",
- "settingChat.enableAutoCreateTopic.title": "Auto Create Topic",
"settingChat.enableAutoScrollOnStreaming.desc": "Override global setting for this assistant",
"settingChat.enableAutoScrollOnStreaming.title": "Auto-scroll During AI Response",
"settingChat.enableCompressHistory.title": "Enable Automatic Summary of Chat History",
diff --git a/locales/es-ES/setting.json b/locales/es-ES/setting.json
index 620ab63579f..e295b00d04e 100644
--- a/locales/es-ES/setting.json
+++ b/locales/es-ES/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "Importar desde URL",
"agentSkillModal.url.urlPlaceholder": "https://example.com/path/to/SKILL.md",
"agentSkillTag": "Habilidad del Agente",
- "agentTab.chat": "Preferencias de Chat",
"agentTab.documents": "Documentos",
"agentTab.meta": "Información del Agente",
- "agentTab.modal": "Configuración del Modelo",
"agentTab.opening": "Configuración de Inicio",
"agentTab.plugin": "Configuración de Habilidades",
"agentTab.prompt": "Perfil del Agente",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "Color de tema personalizado",
"settingAppearance.primaryColor.title": "Color del Tema",
"settingAppearance.title": "Apariencia de la Aplicación",
- "settingChat.autoCreateTopicThreshold.desc": "Crea automáticamente un tema cuando el número de mensajes actuales exceda este valor",
- "settingChat.autoCreateTopicThreshold.title": "Límite de Mensajes",
"settingChat.chatStyleType.title": "Estilo de Ventana de Chat",
"settingChat.chatStyleType.type.chat": "Modo Conversación",
"settingChat.chatStyleType.type.docs": "Modo Página",
"settingChat.compressThreshold.desc": "Cuando los mensajes históricos sin comprimir excedan este valor, se aplicará compresión",
"settingChat.compressThreshold.title": "Límite de Compresión de Mensajes Históricos",
- "settingChat.enableAutoCreateTopic.desc": "Si se debe crear automáticamente un tema durante la conversación, solo efectivo en temas temporales",
- "settingChat.enableAutoCreateTopic.title": "Crear Tema Automáticamente",
"settingChat.enableAutoScrollOnStreaming.desc": "Anular la configuración global para este asistente",
"settingChat.enableAutoScrollOnStreaming.title": "Desplazamiento automático durante la respuesta de la IA",
"settingChat.enableCompressHistory.title": "Activar Resumen Automático del Historial de Chat",
diff --git a/locales/fa-IR/setting.json b/locales/fa-IR/setting.json
index 588d51ec686..7c6e752b301 100644
--- a/locales/fa-IR/setting.json
+++ b/locales/fa-IR/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "وارد کردن از URL",
"agentSkillModal.url.urlPlaceholder": "https://example.com/path/to/SKILL.md",
"agentSkillTag": "مهارت عامل",
- "agentTab.chat": "تنظیمات گفتگو",
"agentTab.documents": "اسناد",
"agentTab.meta": "اطلاعات عامل",
- "agentTab.modal": "تنظیمات مدل",
"agentTab.opening": "تنظیمات آغازین",
"agentTab.plugin": "تنظیمات مهارت",
"agentTab.prompt": "پروفایل عامل",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "رنگ تم سفارشی",
"settingAppearance.primaryColor.title": "رنگ تم",
"settingAppearance.title": "ظاهر برنامه",
- "settingChat.autoCreateTopicThreshold.desc": "هنگامی که تعداد پیام‌ها از این مقدار بیشتر شود، موضوع جدیدی به‌طور خودکار ایجاد می‌شود",
- "settingChat.autoCreateTopicThreshold.title": "آستانه تعداد پیام",
"settingChat.chatStyleType.title": "سبک پنجره گفتگو",
"settingChat.chatStyleType.type.chat": "حالت مکالمه",
"settingChat.chatStyleType.type.docs": "حالت صفحه",
"settingChat.compressThreshold.desc": "وقتی تعداد پیام‌های تاریخچه فشرده‌نشده از این مقدار بیشتر شود، فشرده‌سازی اعمال می‌شود",
"settingChat.compressThreshold.title": "آستانه فشرده‌سازی پیام‌های تاریخچه",
- "settingChat.enableAutoCreateTopic.desc": "آیا در طول مکالمه موضوع به‌طور خودکار ایجاد شود، فقط در موضوعات موقت مؤثر است",
- "settingChat.enableAutoCreateTopic.title": "ایجاد خودکار موضوع",
"settingChat.enableAutoScrollOnStreaming.desc": "نادیده گرفتن تنظیمات کلی برای این دستیار",
"settingChat.enableAutoScrollOnStreaming.title": "پیمایش خودکار هنگام پاسخ‌دهی هوش مصنوعی",
"settingChat.enableCompressHistory.title": "فعال‌سازی خلاصه‌سازی خودکار تاریخچه گفتگو",
diff --git a/locales/fr-FR/setting.json b/locales/fr-FR/setting.json
index c420a3e6a9d..549878200c2 100644
--- a/locales/fr-FR/setting.json
+++ b/locales/fr-FR/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "Importer depuis une URL",
"agentSkillModal.url.urlPlaceholder": "https://exemple.com/chemin/vers/SKILL.md",
"agentSkillTag": "Compétence d'agent",
- "agentTab.chat": "Préférences de discussion",
"agentTab.documents": "Documents",
"agentTab.meta": "Informations de l'agent",
- "agentTab.modal": "Paramètres du modèle",
"agentTab.opening": "Paramètres d'ouverture",
"agentTab.plugin": "Paramètres des compétences",
"agentTab.prompt": "Profil de l'agent",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "Couleur de thème personnalisée",
"settingAppearance.primaryColor.title": "Couleur du thème",
"settingAppearance.title": "Apparence de l’application",
- "settingChat.autoCreateTopicThreshold.desc": "Créer automatiquement un sujet lorsque le nombre de messages dépasse cette valeur",
- "settingChat.autoCreateTopicThreshold.title": "Seuil de messages",
"settingChat.chatStyleType.title": "Style de la fenêtre de chat",
"settingChat.chatStyleType.type.chat": "Mode conversation",
"settingChat.chatStyleType.type.docs": "Mode page",
"settingChat.compressThreshold.desc": "Lorsque le nombre de messages non compressés dépasse cette valeur, une compression est appliquée",
"settingChat.compressThreshold.title": "Seuil de compression de l’historique",
- "settingChat.enableAutoCreateTopic.desc": "Créer automatiquement un sujet pendant la conversation (valable uniquement pour les sujets temporaires)",
- "settingChat.enableAutoCreateTopic.title": "Création automatique de sujet",
"settingChat.enableAutoScrollOnStreaming.desc": "Remplacer le paramètre global pour cet assistant",
"settingChat.enableAutoScrollOnStreaming.title": "Défilement automatique pendant la réponse de l'IA",
"settingChat.enableCompressHistory.title": "Activer le résumé automatique de l’historique",
diff --git a/locales/it-IT/setting.json b/locales/it-IT/setting.json
index 861c3886aeb..8efe3d550d2 100644
--- a/locales/it-IT/setting.json
+++ b/locales/it-IT/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "Importa da URL",
"agentSkillModal.url.urlPlaceholder": "https://example.com/path/to/SKILL.md",
"agentSkillTag": "Skill dell'Agente",
- "agentTab.chat": "Preferenze Chat",
"agentTab.documents": "Documenti",
"agentTab.meta": "Informazioni Agente",
- "agentTab.modal": "Impostazioni Modello",
"agentTab.opening": "Impostazioni Iniziali",
"agentTab.plugin": "Impostazioni Abilità",
"agentTab.prompt": "Profilo Agente",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "Colore tema personalizzato",
"settingAppearance.primaryColor.title": "Colore Tema",
"settingAppearance.title": "Aspetto Applicazione",
- "settingChat.autoCreateTopicThreshold.desc": "Crea automaticamente un argomento quando il numero di messaggi supera questo valore",
- "settingChat.autoCreateTopicThreshold.title": "Soglia Messaggi",
"settingChat.chatStyleType.title": "Stile Finestra Chat",
"settingChat.chatStyleType.type.chat": "Modalità Conversazione",
"settingChat.chatStyleType.type.docs": "Modalità Pagina",
"settingChat.compressThreshold.desc": "Quando i messaggi della cronologia non compressi superano questo valore, verrà applicata la compressione",
"settingChat.compressThreshold.title": "Soglia di Compressione Cronologia",
- "settingChat.enableAutoCreateTopic.desc": "Se abilitato, crea automaticamente un argomento durante la conversazione. Valido solo per argomenti temporanei",
- "settingChat.enableAutoCreateTopic.title": "Creazione Automatica Argomento",
"settingChat.enableAutoScrollOnStreaming.desc": "Ignora l'impostazione globale per questo assistente",
"settingChat.enableAutoScrollOnStreaming.title": "Scorrimento automatico durante la risposta dell'IA",
"settingChat.enableCompressHistory.title": "Abilita Riepilogo Automatico Cronologia",
diff --git a/locales/ja-JP/setting.json b/locales/ja-JP/setting.json
index a887fc1b7ec..a781c5fcfd4 100644
--- a/locales/ja-JP/setting.json
+++ b/locales/ja-JP/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "URLからインポート",
"agentSkillModal.url.urlPlaceholder": "https://example.com/path/to/SKILL.md",
"agentSkillTag": "エージェントスキル",
- "agentTab.chat": "チャット設定",
"agentTab.documents": "ドキュメント",
"agentTab.meta": "メタ情報",
- "agentTab.modal": "モーダル設定",
"agentTab.opening": "オープニング設定",
"agentTab.plugin": "スキル設定",
"agentTab.prompt": "プロンプト設定",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "テーマカラーのカスタマイズ",
"settingAppearance.primaryColor.title": "テーマカラー",
"settingAppearance.title": "アプリの外観",
- "settingChat.autoCreateTopicThreshold.desc": "現在のメッセージ数がこの値を超えると、トピックが自動的に作成されます",
- "settingChat.autoCreateTopicThreshold.title": "メッセージ閾値",
"settingChat.chatStyleType.title": "チャットウィンドウのスタイル",
"settingChat.chatStyleType.type.chat": "チャットモード",
"settingChat.chatStyleType.type.docs": "ドキュメントモード",
"settingChat.compressThreshold.desc": "圧縮されていない過去のメッセージがこの値を超えると、圧縮されます",
"settingChat.compressThreshold.title": "過去メッセージの長さの圧縮閾値",
- "settingChat.enableAutoCreateTopic.desc": "会話中に自動的にトピックを作成するかどうか。一時的なトピックのみ有効です",
- "settingChat.enableAutoCreateTopic.title": "自動的にトピックを作成する",
"settingChat.enableAutoScrollOnStreaming.desc": "このアシスタントに対してグローバル設定を上書きします",
"settingChat.enableAutoScrollOnStreaming.title": "AI応答中の自動スクロール",
"settingChat.enableCompressHistory.title": "履歴メッセージの自動要約を有効にする",
diff --git a/locales/ko-KR/setting.json b/locales/ko-KR/setting.json
index 4f87199bf50..7e3e696053b 100644
--- a/locales/ko-KR/setting.json
+++ b/locales/ko-KR/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "URL에서 가져오기",
"agentSkillModal.url.urlPlaceholder": "https://example.com/path/to/SKILL.md",
"agentSkillTag": "에이전트 스킬",
- "agentTab.chat": "채팅 환경설정",
"agentTab.documents": "문서",
"agentTab.meta": "도우미 정보",
- "agentTab.modal": "모델 설정",
"agentTab.opening": "시작 설정",
"agentTab.plugin": "기능 설정",
"agentTab.prompt": "역할 프롬프트",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "테마 색상 사용자 정의",
"settingAppearance.primaryColor.title": "테마 색상",
"settingAppearance.title": "응용 프로그램 외관",
- "settingChat.autoCreateTopicThreshold.desc": "현재 메시지 수가이 값 이상이면 자동으로 주제가 생성됩니다",
- "settingChat.autoCreateTopicThreshold.title": "메시지 임계값",
"settingChat.chatStyleType.title": "채팅 창 스타일",
"settingChat.chatStyleType.type.chat": "대화 모드",
"settingChat.chatStyleType.type.docs": "문서 모드",
"settingChat.compressThreshold.desc": "압축되지 않은 이전 메시지가이 값 이상이면 압축됩니다",
"settingChat.compressThreshold.title": "이전 메시지 길이 압축 임계값",
- "settingChat.enableAutoCreateTopic.desc": "대화 중에 자동으로 주제를 만들지 여부를 설정합니다. 일시적인 주제에서만 작동합니다",
- "settingChat.enableAutoCreateTopic.title": "자동 주제 생성 활성화",
"settingChat.enableAutoScrollOnStreaming.desc": "이 어시스턴트에 대한 전역 설정을 재정의합니다",
"settingChat.enableAutoScrollOnStreaming.title": "AI 응답 중 자동 스크롤",
"settingChat.enableCompressHistory.title": "역사 메시지 자동 요약 활성화",
diff --git a/locales/nl-NL/setting.json b/locales/nl-NL/setting.json
index 796cd2da550..68127a18ce1 100644
--- a/locales/nl-NL/setting.json
+++ b/locales/nl-NL/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "Importeren via URL",
"agentSkillModal.url.urlPlaceholder": "https://voorbeeld.com/pad/naar/SKILL.md",
"agentSkillTag": "Agentvaardigheid",
- "agentTab.chat": "Chatvoorkeuren",
"agentTab.documents": "Documenten",
"agentTab.meta": "Agentinformatie",
- "agentTab.modal": "Modelinstellingen",
"agentTab.opening": "Startinstellingen",
"agentTab.plugin": "Vaardigheidsinstellingen",
"agentTab.prompt": "Agentprofiel",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "Aangepaste themakleur",
"settingAppearance.primaryColor.title": "Themakleur",
"settingAppearance.title": "Uiterlijk van de applicatie",
- "settingChat.autoCreateTopicThreshold.desc": "Maak automatisch een onderwerp aan wanneer het aantal berichten deze waarde overschrijdt",
- "settingChat.autoCreateTopicThreshold.title": "Berichtendrempel",
"settingChat.chatStyleType.title": "Stijl van chatvenster",
"settingChat.chatStyleType.type.chat": "Gespreksmodus",
"settingChat.chatStyleType.type.docs": "Paginamodus",
"settingChat.compressThreshold.desc": "Wanneer het aantal niet-gecomprimeerde berichten deze waarde overschrijdt, wordt compressie toegepast",
"settingChat.compressThreshold.title": "Drempel voor compressie van berichtgeschiedenis",
- "settingChat.enableAutoCreateTopic.desc": "Of er automatisch een onderwerp wordt aangemaakt tijdens het gesprek, alleen van toepassing op tijdelijke onderwerpen",
- "settingChat.enableAutoCreateTopic.title": "Automatisch onderwerp aanmaken",
"settingChat.enableAutoScrollOnStreaming.desc": "Overschrijf de globale instelling voor deze assistent",
"settingChat.enableAutoScrollOnStreaming.title": "Automatisch scrollen tijdens AI-reactie",
"settingChat.enableCompressHistory.title": "Automatische samenvatting van chatgeschiedenis inschakelen",
diff --git a/locales/pl-PL/setting.json b/locales/pl-PL/setting.json
index c79e194450e..f6f2897fd7a 100644
--- a/locales/pl-PL/setting.json
+++ b/locales/pl-PL/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "Importuj z URL",
"agentSkillModal.url.urlPlaceholder": "https://example.com/sciezka/do/SKILL.md",
"agentSkillTag": "Umiejętność agenta",
- "agentTab.chat": "Preferencje czatu",
"agentTab.documents": "Dokumenty",
"agentTab.meta": "Informacje o agencie",
- "agentTab.modal": "Ustawienia modelu",
"agentTab.opening": "Ustawienia rozpoczęcia",
"agentTab.plugin": "Ustawienia umiejętności",
"agentTab.prompt": "Profil agenta",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "Dostosuj kolor motywu",
"settingAppearance.primaryColor.title": "Kolor motywu",
"settingAppearance.title": "Wygląd aplikacji",
- "settingChat.autoCreateTopicThreshold.desc": "Automatycznie utwórz temat, gdy liczba wiadomości przekroczy tę wartość",
- "settingChat.autoCreateTopicThreshold.title": "Próg wiadomości",
"settingChat.chatStyleType.title": "Styl okna czatu",
"settingChat.chatStyleType.type.chat": "Tryb konwersacji",
"settingChat.chatStyleType.type.docs": "Tryb strony",
"settingChat.compressThreshold.desc": "Gdy liczba niekompresowanych wiadomości przekroczy tę wartość, zostanie zastosowana kompresja",
"settingChat.compressThreshold.title": "Próg kompresji historii wiadomości",
- "settingChat.enableAutoCreateTopic.desc": "Czy automatycznie tworzyć temat podczas rozmowy (dotyczy tylko tematów tymczasowych)",
- "settingChat.enableAutoCreateTopic.title": "Automatyczne tworzenie tematu",
"settingChat.enableAutoScrollOnStreaming.desc": "Zastąp ustawienie globalne dla tego asystenta",
"settingChat.enableAutoScrollOnStreaming.title": "Auto-przewijanie podczas odpowiedzi AI",
"settingChat.enableCompressHistory.title": "Włącz automatyczne podsumowanie historii czatu",
diff --git a/locales/pt-BR/setting.json b/locales/pt-BR/setting.json
index c9f548f36a5..158cb7fb276 100644
--- a/locales/pt-BR/setting.json
+++ b/locales/pt-BR/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "Importar de URL",
"agentSkillModal.url.urlPlaceholder": "https://exemplo.com/caminho/para/SKILL.md",
"agentSkillTag": "Habilidade do Agente",
- "agentTab.chat": "Preferências de Conversa",
"agentTab.documents": "Documentos",
"agentTab.meta": "Informações do Agente",
- "agentTab.modal": "Configurações do Modelo",
"agentTab.opening": "Configurações de Abertura",
"agentTab.plugin": "Configurações de Habilidades",
"agentTab.prompt": "Perfil do Agente",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "Cor do tema personalizada",
"settingAppearance.primaryColor.title": "Cor do Tema",
"settingAppearance.title": "Aparência do Aplicativo",
- "settingChat.autoCreateTopicThreshold.desc": "Cria automaticamente um tópico quando o número atual de mensagens exceder este valor",
- "settingChat.autoCreateTopicThreshold.title": "Limite de Mensagens",
"settingChat.chatStyleType.title": "Estilo da Janela de Chat",
"settingChat.chatStyleType.type.chat": "Modo Conversa",
"settingChat.chatStyleType.type.docs": "Modo Página",
"settingChat.compressThreshold.desc": "Quando o histórico de mensagens não compactado exceder este valor, a compactação será aplicada",
"settingChat.compressThreshold.title": "Limite de Compactação do Histórico",
- "settingChat.enableAutoCreateTopic.desc": "Define se um tópico será criado automaticamente durante a conversa, válido apenas para tópicos temporários",
- "settingChat.enableAutoCreateTopic.title": "Criar Tópico Automaticamente",
"settingChat.enableAutoScrollOnStreaming.desc": "Substituir a configuração global para este assistente",
"settingChat.enableAutoScrollOnStreaming.title": "Rolagem automática durante resposta da IA",
"settingChat.enableCompressHistory.title": "Ativar Resumo Automático do Histórico",
diff --git a/locales/ru-RU/setting.json b/locales/ru-RU/setting.json
index a2df860e9eb..e7c4ce4dfbc 100644
--- a/locales/ru-RU/setting.json
+++ b/locales/ru-RU/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "Импорт из URL",
"agentSkillModal.url.urlPlaceholder": "https://example.com/path/to/SKILL.md",
"agentSkillTag": "Навык агента",
- "agentTab.chat": "Настройки чата",
"agentTab.documents": "Документы",
"agentTab.meta": "Информация об агенте",
- "agentTab.modal": "Настройки модели",
"agentTab.opening": "Начальные настройки",
"agentTab.plugin": "Настройки навыков",
"agentTab.prompt": "Профиль агента",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "Пользовательский цвет темы",
"settingAppearance.primaryColor.title": "Цвет темы",
"settingAppearance.title": "Внешний вид приложения",
- "settingChat.autoCreateTopicThreshold.desc": "Автоматически создавать тему, когда количество сообщений превышает это значение",
- "settingChat.autoCreateTopicThreshold.title": "Порог сообщений",
"settingChat.chatStyleType.title": "Стиль окна чата",
"settingChat.chatStyleType.type.chat": "Режим диалога",
"settingChat.chatStyleType.type.docs": "Режим страницы",
"settingChat.compressThreshold.desc": "Если количество несжатых сообщений превышает это значение, будет применено сжатие",
"settingChat.compressThreshold.title": "Порог сжатия истории сообщений",
- "settingChat.enableAutoCreateTopic.desc": "Автоматически создавать тему во время беседы (только для временных тем)",
- "settingChat.enableAutoCreateTopic.title": "Автосоздание темы",
"settingChat.enableAutoScrollOnStreaming.desc": "Переопределить глобальную настройку для этого ассистента",
"settingChat.enableAutoScrollOnStreaming.title": "Автопрокрутка во время ответа ИИ",
"settingChat.enableCompressHistory.title": "Включить автоматическое резюмирование истории чата",
diff --git a/locales/tr-TR/setting.json b/locales/tr-TR/setting.json
index 3c2fa190bf9..e0f13c17c9d 100644
--- a/locales/tr-TR/setting.json
+++ b/locales/tr-TR/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "URL'den İçe Aktar",
"agentSkillModal.url.urlPlaceholder": "https://example.com/path/to/SKILL.md",
"agentSkillTag": "Ajan Beceri",
- "agentTab.chat": "Sohbet Tercihleri",
"agentTab.documents": "Belgeler",
"agentTab.meta": "Temsilci Bilgisi",
- "agentTab.modal": "Model Ayarları",
"agentTab.opening": "Açılış Ayarları",
"agentTab.plugin": "Yetenek Ayarları",
"agentTab.prompt": "Temsilci Profili",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "Özel tema rengi",
"settingAppearance.primaryColor.title": "Tema Rengi",
"settingAppearance.title": "Uygulama Görünümü",
- "settingChat.autoCreateTopicThreshold.desc": "Mevcut mesaj sayısı bu değeri aştığında otomatik olarak konu oluştur",
- "settingChat.autoCreateTopicThreshold.title": "Mesaj Eşiği",
"settingChat.chatStyleType.title": "Sohbet Penceresi Stili",
"settingChat.chatStyleType.type.chat": "Konuşma Modu",
"settingChat.chatStyleType.type.docs": "Sayfa Modu",
"settingChat.compressThreshold.desc": "Sıkıştırılmamış geçmiş mesajlar bu değeri aşarsa sıkıştırma uygulanır",
"settingChat.compressThreshold.title": "Geçmiş Mesaj Uzunluğu Sıkıştırma Eşiği",
- "settingChat.enableAutoCreateTopic.desc": "Sohbet sırasında otomatik konu oluşturulsun mu, yalnızca geçici konularda geçerlidir",
- "settingChat.enableAutoCreateTopic.title": "Otomatik Konu Oluştur",
"settingChat.enableAutoScrollOnStreaming.desc": "Bu asistan için genel ayarı geçersiz kıl",
"settingChat.enableAutoScrollOnStreaming.title": "Yapay Zeka Yanıtı Sırasında Otomatik Kaydırma",
"settingChat.enableCompressHistory.title": "Sohbet Geçmişini Otomatik Özetle",
diff --git a/locales/vi-VN/setting.json b/locales/vi-VN/setting.json
index 0542d1c8c4e..72d62f82f6d 100644
--- a/locales/vi-VN/setting.json
+++ b/locales/vi-VN/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "Nhập từ URL",
"agentSkillModal.url.urlPlaceholder": "https://example.com/path/to/SKILL.md",
"agentSkillTag": "Kỹ năng Đại lý",
- "agentTab.chat": "Tùy chọn trò chuyện",
"agentTab.documents": "Tài liệu",
"agentTab.meta": "Thông tin Agent",
- "agentTab.modal": "Cài đặt Mô hình",
"agentTab.opening": "Cài đặt Mở đầu",
"agentTab.plugin": "Cài đặt Kỹ năng",
"agentTab.prompt": "Hồ sơ Agent",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "Tùy chỉnh màu chủ đề",
"settingAppearance.primaryColor.title": "Màu chủ đề",
"settingAppearance.title": "Giao diện ứng dụng",
- "settingChat.autoCreateTopicThreshold.desc": "Tự động tạo chủ đề khi số lượng tin nhắn hiện tại vượt quá giá trị này",
- "settingChat.autoCreateTopicThreshold.title": "Ngưỡng tin nhắn",
"settingChat.chatStyleType.title": "Kiểu cửa sổ trò chuyện",
"settingChat.chatStyleType.type.chat": "Chế độ hội thoại",
"settingChat.chatStyleType.type.docs": "Chế độ trang",
"settingChat.compressThreshold.desc": "Khi số lượng tin nhắn chưa nén vượt quá giá trị này, sẽ tiến hành nén",
"settingChat.compressThreshold.title": "Ngưỡng độ dài tin nhắn lịch sử để nén",
- "settingChat.enableAutoCreateTopic.desc": "Tự động tạo chủ đề trong cuộc trò chuyện, chỉ áp dụng cho chủ đề tạm thời",
- "settingChat.enableAutoCreateTopic.title": "Tự động tạo chủ đề",
"settingChat.enableAutoScrollOnStreaming.desc": "Ghi đè cài đặt toàn cục cho trợ lý này",
"settingChat.enableAutoScrollOnStreaming.title": "Tự động cuộn khi AI phản hồi",
"settingChat.enableCompressHistory.title": "Bật tóm tắt lịch sử trò chuyện tự động",
diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.json
index dd4ed96538d..9bca81e73f6 100644
--- a/locales/zh-CN/setting.json
+++ b/locales/zh-CN/setting.json
@@ -180,8 +180,6 @@
"agentSkillModal.url.title": "从 URL 导入",
"agentSkillModal.url.urlPlaceholder": "https://example.com/path/to/SKILL.md",
"agentSkillTag": "Agent 技能",
- "agentTab.chat": "对话偏好",
- "agentTab.modal": "模型设置",
"agentTab.opening": "开场设置",
"agentTab.plugin": "技能设置",
"agentTab.prompt": "助理档案",
@@ -529,15 +527,11 @@
"settingAppearance.primaryColor.desc": "自定义主题色",
"settingAppearance.primaryColor.title": "主题色",
"settingAppearance.title": "应用外观",
- "settingChat.autoCreateTopicThreshold.desc": "当前消息数超过设定该值后,将自动创建话题",
- "settingChat.autoCreateTopicThreshold.title": "消息阈值",
"settingChat.chatStyleType.title": "聊天窗口样式",
"settingChat.chatStyleType.type.chat": "对话模式",
"settingChat.chatStyleType.type.docs": "文档模式",
"settingChat.compressThreshold.desc": "当未压缩的历史消息超过该值时,将进行压缩",
"settingChat.compressThreshold.title": "历史消息长度压缩阈值",
- "settingChat.enableAutoCreateTopic.desc": "会话过程中是否自动创建话题,仅在临时话题中生效",
- "settingChat.enableAutoCreateTopic.title": "自动创建话题",
"settingChat.enableAutoScrollOnStreaming.desc": "覆盖此助手的全局设置",
"settingChat.enableAutoScrollOnStreaming.title": "AI 回复时自动滚动",
"settingChat.enableCompressHistory.title": "开启历史消息自动总结",
diff --git a/locales/zh-TW/setting.json b/locales/zh-TW/setting.json
index c09a5e6a7b5..055a995a7c7 100644
--- a/locales/zh-TW/setting.json
+++ b/locales/zh-TW/setting.json
@@ -180,10 +180,8 @@
"agentSkillModal.url.title": "從 URL 匯入",
"agentSkillModal.url.urlPlaceholder": "https://example.com/path/to/SKILL.md",
"agentSkillTag": "代理技能",
- "agentTab.chat": "聊天偏好",
"agentTab.documents": "文件",
"agentTab.meta": "助手資訊",
- "agentTab.modal": "模型設定",
"agentTab.opening": "開場設定",
"agentTab.plugin": "外掛程式設定",
"agentTab.prompt": "角色設定",
@@ -531,15 +529,11 @@
"settingAppearance.primaryColor.desc": "自訂主題色",
"settingAppearance.primaryColor.title": "主題色",
"settingAppearance.title": "應用外觀",
- "settingChat.autoCreateTopicThreshold.desc": "當前訊息數超過設定值後,將自動建立話題",
- "settingChat.autoCreateTopicThreshold.title": "訊息閾值",
"settingChat.chatStyleType.title": "聊天視窗樣式",
"settingChat.chatStyleType.type.chat": "對話模式",
"settingChat.chatStyleType.type.docs": "文件模式",
"settingChat.compressThreshold.desc": "當未壓縮的歷史訊息超過該值時,將進行壓縮",
"settingChat.compressThreshold.title": "歷史訊息長度壓縮閾值",
- "settingChat.enableAutoCreateTopic.desc": "對話過程中是否自動建立話題,僅在臨時話題中生效",
- "settingChat.enableAutoCreateTopic.title": "自動建立話題",
"settingChat.enableAutoScrollOnStreaming.desc": "覆蓋此助理的全域設定",
"settingChat.enableAutoScrollOnStreaming.title": "AI 回應時自動捲動",
"settingChat.enableCompressHistory.title": "開啟歷史消息自動總結",
diff --git a/packages/builtin-agents/src/agents/agent-builder/systemRole.ts b/packages/builtin-agents/src/agents/agent-builder/systemRole.ts
index 4980cf28969..cf783adcae0 100644
--- a/packages/builtin-agents/src/agents/agent-builder/systemRole.ts
+++ b/packages/builtin-agents/src/agents/agent-builder/systemRole.ts
@@ -51,8 +51,6 @@ You have access to tools that can read and modify agent configurations:
**Chat Configuration (chatConfig):**
- historyCount: Number of previous messages to include in context (default: 20). Higher values provide more context but increase token usage.
- enableHistoryCount: Whether to limit history (default: true)
-- enableAutoCreateTopic: Automatically create topics based on conversation (default: true)
-- autoCreateTopicThreshold: Messages before auto-creating topic (default: 2)
- enableCompressHistory: Compress long conversation history to save tokens (default: true)
- enableStreaming: Stream responses in real-time (default: true)
- enableReasoning: Enable reasoning/thinking mode for supported models (default: false)
diff --git a/packages/builtin-tool-agent-builder/src/manifest.ts b/packages/builtin-tool-agent-builder/src/manifest.ts
index e1715a60a78..26b7f3e27b6 100644
--- a/packages/builtin-tool-agent-builder/src/manifest.ts
+++ b/packages/builtin-tool-agent-builder/src/manifest.ts
@@ -87,7 +87,7 @@ export const AgentBuilderManifest: BuiltinToolManifest = {
properties: {
chatConfig: {
description:
- 'Chat configuration settings (historyCount, enableHistoryCount, enableAutoCreateTopic, autoCreateTopicThreshold, enableCompressHistory, enableStreaming, enableReasoning)',
+ 'Chat configuration settings (historyCount, enableHistoryCount, enableCompressHistory, enableStreaming, enableReasoning)',
type: 'object',
},
model: {
diff --git a/packages/builtin-tool-agent-builder/src/systemRole.ts b/packages/builtin-tool-agent-builder/src/systemRole.ts
index 5ddb63fdd3a..f50b44fbd47 100644
--- a/packages/builtin-tool-agent-builder/src/systemRole.ts
+++ b/packages/builtin-tool-agent-builder/src/systemRole.ts
@@ -73,7 +73,6 @@ When showing configuration to users, use semantic, user-friendly names instead o
| top_p | Sampling Range | 采样范围 |
| frequency_penalty | Reduce Repetition | 减少重复 |
| presence_penalty | Topic Diversity | 话题多样性 |
-| autoCreateTopicThreshold | Auto-topic Threshold | 自动话题阈值 |
Always adapt to user's language. Use natural descriptions, not raw field names.
</display_conventions>
@@ -137,8 +136,6 @@ Always adapt to user's language. Use natural descriptions, not raw field names.
**Chat Configuration (chatConfig)** - Conversation behavior settings:
- historyCount: Number of previous messages to include in context (default: 20)
- enableHistoryCount: Whether to limit history (default: true)
-- enableAutoCreateTopic: Automatically create topics based on conversation (default: true)
-- autoCreateTopicThreshold: Messages before auto-creating topic (default: 2)
- enableCompressHistory: Compress long conversation history to save tokens (default: true)
- enableStreaming: Stream responses in real-time (default: true)
- enableReasoning: Enable reasoning/thinking mode for supported models (default: false)
diff --git a/packages/builtin-tool-group-agent-builder/src/manifest.ts b/packages/builtin-tool-group-agent-builder/src/manifest.ts
index bdca2d316aa..725065bfb49 100644
--- a/packages/builtin-tool-group-agent-builder/src/manifest.ts
+++ b/packages/builtin-tool-group-agent-builder/src/manifest.ts
@@ -325,7 +325,7 @@ export const GroupAgentBuilderManifest: BuiltinToolManifest = {
properties: {
chatConfig: {
description:
- 'Chat configuration settings (historyCount, enableHistoryCount, enableAutoCreateTopic, etc.)',
+ 'Chat configuration settings (historyCount, enableHistoryCount, enableCompressHistory, etc.)',
type: 'object',
},
model: {
diff --git a/packages/const/src/settings/agent.ts b/packages/const/src/settings/agent.ts
index 3b6979f248c..51cc5c76976 100644
--- a/packages/const/src/settings/agent.ts
+++ b/packages/const/src/settings/agent.ts
@@ -24,9 +24,7 @@ export const DEFAULT_AGENT_SEARCH_FC_MODEL = {
};
export const DEFAULT_AGENT_CHAT_CONFIG: LobeAgentChatConfig = {
- autoCreateTopicThreshold: 2,
enableAgentMode: true,
- enableAutoCreateTopic: true,
enableCompressHistory: true,
enableContextCompression: true,
enableHistoryCount: false,
diff --git a/packages/database/src/models/agentSignal/__tests__/nightlyReview.test.ts b/packages/database/src/models/agentSignal/__tests__/nightlyReview.test.ts
index 3dba1c1ac99..fb071d2a5b4 100644
--- a/packages/database/src/models/agentSignal/__tests__/nightlyReview.test.ts
+++ b/packages/database/src/models/agentSignal/__tests__/nightlyReview.test.ts
@@ -95,9 +95,7 @@ describe('AgentSignalNightlyReviewModel', () => {
describe('listActiveAgentTargets', () => {
const chatConfigForSelfIteration = (enabled?: boolean) =>
- enabled === undefined
- ? { autoCreateTopicThreshold: 2 }
- : { autoCreateTopicThreshold: 2, selfIteration: { enabled } };
+ enabled === undefined ? {} : { selfIteration: { enabled } };
const seedNightlyCapabilityTargets = async (caseName: string, blockedEnabled?: boolean) => {
await serverDB.insert(users).values({ id: enabledUserId });
@@ -205,38 +203,38 @@ describe('AgentSignalNightlyReviewModel', () => {
.insert(agents)
.values([
{
- chatConfig: { autoCreateTopicThreshold: 2, selfIteration: { enabled: true } },
+ chatConfig: { selfIteration: { enabled: true } },
id: 'nightly-active-agent',
title: 'Active agent',
userId: enabledUserId,
},
{
- chatConfig: { autoCreateTopicThreshold: 2, selfIteration: { enabled: true } },
+ chatConfig: { selfIteration: { enabled: true } },
id: 'nightly-legacy-agent',
title: 'Legacy agent',
userId: enabledUserId,
},
{
- chatConfig: { autoCreateTopicThreshold: 2, selfIteration: { enabled: true } },
+ chatConfig: { selfIteration: { enabled: true } },
id: 'nightly-inactive-agent',
title: 'Inactive agent',
userId: enabledUserId,
},
{
- chatConfig: { autoCreateTopicThreshold: 2, selfIteration: { enabled: false } },
+ chatConfig: { selfIteration: { enabled: false } },
id: 'nightly-disabled-agent',
title: 'Disabled agent',
userId: enabledUserId,
},
{
- chatConfig: { autoCreateTopicThreshold: 2, selfIteration: { enabled: true } },
+ chatConfig: { selfIteration: { enabled: true } },
id: 'nightly-virtual-agent',
title: 'Virtual agent',
userId: enabledUserId,
virtual: true,
},
{
- chatConfig: { autoCreateTopicThreshold: 2, selfIteration: { enabled: true } },
+ chatConfig: { selfIteration: { enabled: true } },
id: 'nightly-other-user-agent',
title: 'Other user',
userId: otherUserId,
diff --git a/packages/database/src/models/agentSignal/__tests__/reviewContext.test.ts b/packages/database/src/models/agentSignal/__tests__/reviewContext.test.ts
index 21ae3d8979e..182af0a31d5 100644
--- a/packages/database/src/models/agentSignal/__tests__/reviewContext.test.ts
+++ b/packages/database/src/models/agentSignal/__tests__/reviewContext.test.ts
@@ -77,14 +77,14 @@ describe('AgentSignalReviewContextModel', () => {
await serverDB.insert(users).values({ id: userId });
await serverDB.insert(agents).values([
{
- chatConfig: { autoCreateTopicThreshold: 2, selfIteration: { enabled: true } },
+ chatConfig: { selfIteration: { enabled: true } },
id: 'agent-signal-review-context-enabled',
slug: 'custom-agent',
title: 'Custom enabled',
userId,
},
{
- chatConfig: { autoCreateTopicThreshold: 2, selfIteration: { enabled: false } },
+ chatConfig: { selfIteration: { enabled: false } },
id: 'agent-signal-review-context-disabled',
slug: 'custom-disabled',
title: 'Custom disabled',
@@ -108,7 +108,7 @@ describe('AgentSignalReviewContextModel', () => {
await serverDB.insert(users).values({ id: userId });
await serverDB.insert(agents).values([
{
- chatConfig: { autoCreateTopicThreshold: 2, selfIteration: { enabled: true } },
+ chatConfig: { selfIteration: { enabled: true } },
id: agentId,
title: 'Review Context Agent',
userId,
@@ -210,7 +210,7 @@ describe('AgentSignalReviewContextModel', () => {
await serverDB.insert(users).values({ id: userId });
await serverDB.insert(agents).values([
{
- chatConfig: { autoCreateTopicThreshold: 2, selfIteration: { enabled: true } },
+ chatConfig: { selfIteration: { enabled: true } },
id: agentId,
title: 'Review Context Agent',
userId,
@@ -293,7 +293,7 @@ describe('AgentSignalReviewContextModel', () => {
await serverDB.insert(users).values({ id: userId });
await serverDB.insert(agents).values([
{
- chatConfig: { autoCreateTopicThreshold: 2, selfIteration: { enabled: true } },
+ chatConfig: { selfIteration: { enabled: true } },
id: agentId,
title: 'Review Context Agent',
userId,
diff --git a/packages/database/src/repositories/dataImporter/deprecated/__tests__/index.test.ts b/packages/database/src/repositories/dataImporter/deprecated/__tests__/index.test.ts
index 50877fa2300..d98ad8c198a 100644
--- a/packages/database/src/repositories/dataImporter/deprecated/__tests__/index.test.ts
+++ b/packages/database/src/repositories/dataImporter/deprecated/__tests__/index.test.ts
@@ -345,7 +345,7 @@ describe('DataImporter', () => {
where: eq(sessions.clientId, 'session1'),
});
const session1Agent = await serverDB.query.agentsToSessions.findFirst({
- where: eq(agentsToSessions.sessionId, session1?.id!),
+ where: eq(agentsToSessions.sessionId, session1!.id),
with: { agent: true },
});
@@ -355,7 +355,7 @@ describe('DataImporter', () => {
where: eq(sessions.clientId, 'session2'),
});
const session2Agent = await serverDB.query.agentsToSessions.findFirst({
- where: eq(agentsToSessions.sessionId, session2?.id!),
+ where: eq(agentsToSessions.sessionId, session2!.id),
with: { agent: true },
});
@@ -885,8 +885,6 @@ describe('DataImporter', () => {
voice: { openai: 'alloy' },
},
chatConfig: {
- autoCreateTopicThreshold: 2,
- enableAutoCreateTopic: true,
historyCount: 1,
},
openingQuestions: ['Question 1', 'Question 2'],
diff --git a/packages/openapi/src/types/agent.type.ts b/packages/openapi/src/types/agent.type.ts
index e58f9dcc75a..2b291c7edad 100644
--- a/packages/openapi/src/types/agent.type.ts
+++ b/packages/openapi/src/types/agent.type.ts
@@ -27,10 +27,8 @@ export const CreateAgentRequestSchema = z.object({
avatar: z.string().nullish(),
chatConfig: z
.object({
- autoCreateTopicThreshold: z.number(),
disableContextCaching: z.boolean().nullish(),
displayMode: z.enum(['chat', 'docs']).nullish(),
- enableAutoCreateTopic: z.boolean().nullish(),
enableCompressHistory: z.boolean().nullish(),
enableHistoryCount: z.boolean().nullish(),
enableMaxTokens: z.boolean().nullish(),
diff --git a/packages/openapi/src/types/chat.type.ts b/packages/openapi/src/types/chat.type.ts
index 54c09f1a89f..9585fc705bb 100644
--- a/packages/openapi/src/types/chat.type.ts
+++ b/packages/openapi/src/types/chat.type.ts
@@ -95,10 +95,8 @@ export const MessageGenerationParamsSchema = z.object({
agentId: z.string().nullish(),
chatConfig: z
.object({
- autoCreateTopicThreshold: z.number().nullish(),
disableContextCaching: z.boolean().nullish(),
displayMode: z.enum(['chat', 'docs']).nullish(),
- enableAutoCreateTopic: z.boolean().nullish(),
enableCompressHistory: z.boolean().nullish(),
enableHistoryCount: z.boolean().nullish(),
enableMaxTokens: z.boolean().nullish(),
diff --git a/packages/types/src/agent/chatConfig.ts b/packages/types/src/agent/chatConfig.ts
index d0404298eca..7afa479c995 100644
--- a/packages/types/src/agent/chatConfig.ts
+++ b/packages/types/src/agent/chatConfig.ts
@@ -25,7 +25,6 @@ export interface AgentSelfIterationChatConfig {
}
export interface LobeAgentChatConfig extends AgentMemoryChatConfig, AgentSelfIterationChatConfig {
- autoCreateTopicThreshold: number;
codexMaxReasoningEffort?: 'low' | 'medium' | 'high' | 'xhigh';
/**
* Model ID to use for generating compression summaries
@@ -49,7 +48,6 @@ export interface LobeAgentChatConfig extends AgentMemoryChatConfig, AgentSelfIte
* Treat undefined as `true` — agent mode is the default.
*/
enableAgentMode?: boolean;
- enableAutoCreateTopic?: boolean;
/**
* Whether to auto-scroll during AI streaming output
* undefined = use global setting
@@ -199,7 +197,6 @@ export const SelfIterationChatConfigSchema = z.object({
export const AgentChatConfigSchema = z
.object({
- autoCreateTopicThreshold: z.number().default(2),
codexMaxReasoningEffort: z.enum(['low', 'medium', 'high', 'xhigh']).optional(),
deepseekV4ReasoningEffort: z.enum(['none', 'high', 'max']).optional(),
compressionModelId: z.string().optional(),
@@ -207,7 +204,6 @@ export const AgentChatConfigSchema = z
effort: z.enum(['low', 'medium', 'high', 'max']).optional(),
enableAdaptiveThinking: z.boolean().optional(),
enableAgentMode: z.boolean().optional(),
- enableAutoCreateTopic: z.boolean().optional(),
enableAutoScrollOnStreaming: z.boolean().optional(),
enableCompressHistory: z.boolean().optional(),
enableContextCompression: z.boolean().optional(),
diff --git a/src/features/AgentSetting/AgentCategory/useCategory.tsx b/src/features/AgentSetting/AgentCategory/useCategory.tsx
index 61e91034e64..cd9a15436b0 100644
--- a/src/features/AgentSetting/AgentCategory/useCategory.tsx
+++ b/src/features/AgentSetting/AgentCategory/useCategory.tsx
@@ -1,6 +1,6 @@
import { Icon } from '@lobehub/ui';
import { type MenuItemType } from 'antd/es/menu/interface';
-import { Activity, Bot, BrainCog, Handshake, MessagesSquare, Mic2 } from 'lucide-react';
+import { Activity, Bot, Handshake, Mic2 } from 'lucide-react';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -33,16 +33,6 @@ export const useCategory = ({ mobile }: UseCategoryOptions = {}) => {
key: ChatSettingsTabs.Opening,
label: t('agentTab.opening'),
}) as MenuItemType,
- {
- icon: <Icon icon={MessagesSquare} size={iconSize} />,
- key: ChatSettingsTabs.Chat,
- label: t('agentTab.chat'),
- },
- {
- icon: <Icon icon={BrainCog} size={iconSize} />,
- key: ChatSettingsTabs.Modal,
- label: t('agentTab.modal'),
- },
enableAgentSelfIteration && {
icon: <Icon icon={Activity} size={iconSize} />,
key: ChatSettingsTabs.SelfIteration,
diff --git a/src/features/AgentSetting/AgentChat/index.tsx b/src/features/AgentSetting/AgentChat/index.tsx
deleted file mode 100644
index cf8d6d3603f..00000000000
--- a/src/features/AgentSetting/AgentChat/index.tsx
+++ /dev/null
@@ -1,97 +0,0 @@
-'use client';
-
-import type { FormGroupItemType } from '@lobehub/ui';
-import { Form, SliderWithInput, TextArea } from '@lobehub/ui';
-import { Switch } from 'antd';
-import isEqual from 'fast-deep-equal';
-import { memo } from 'react';
-import { useTranslation } from 'react-i18next';
-
-import { FORM_STYLE } from '@/const/layoutTokens';
-
-import { selectors, useStore } from '../store';
-
-const AgentChat = memo(() => {
- const { t } = useTranslation('setting');
- const [form] = Form.useForm();
- const updateConfig = useStore((s) => s.setChatConfig);
- const config = useStore(selectors.currentChatConfig, isEqual);
-
- const chat: FormGroupItemType = {
- children: [
- {
- children: <TextArea placeholder={t('settingChat.inputTemplate.placeholder')} />,
- desc: t('settingChat.inputTemplate.desc'),
- label: t('settingChat.inputTemplate.title'),
- name: 'inputTemplate',
- },
- {
- children: <Switch />,
- desc: t('settingChat.enableAutoCreateTopic.desc'),
- label: t('settingChat.enableAutoCreateTopic.title'),
- layout: 'horizontal',
- minWidth: undefined,
- name: 'enableAutoCreateTopic',
- valuePropName: 'checked',
- },
- {
- children: <SliderWithInput max={8} min={0} unlimitedInput={true} />,
- desc: t('settingChat.autoCreateTopicThreshold.desc'),
- divider: false,
- hidden: !config.enableAutoCreateTopic,
- label: t('settingChat.autoCreateTopicThreshold.title'),
- name: 'autoCreateTopicThreshold',
- },
- {
- children: <Switch />,
- label: t('settingChat.enableHistoryCount.title'),
- layout: 'horizontal',
- minWidth: undefined,
- name: 'enableHistoryCount',
- valuePropName: 'checked',
- },
- {
- children: <SliderWithInput max={20} min={0} unlimitedInput={true} />,
- desc: t('settingChat.historyCount.desc'),
- divider: false,
- hidden: !config.enableHistoryCount,
- label: t('settingChat.historyCount.title'),
- name: 'historyCount',
- },
- {
- children: <Switch />,
- hidden: !config.enableHistoryCount,
- label: t('settingChat.enableCompressHistory.title'),
- layout: 'horizontal',
- minWidth: undefined,
- name: 'enableCompressHistory',
- valuePropName: 'checked',
- },
- {
- children: <Switch />,
- desc: t('settingChat.enableAutoScrollOnStreaming.desc'),
- label: t('settingChat.enableAutoScrollOnStreaming.title'),
- layout: 'horizontal',
- minWidth: undefined,
- name: 'enableAutoScrollOnStreaming',
- valuePropName: 'checked',
- },
- ],
- title: t('settingChat.title'),
- };
-
- return (
- <Form
- footer={<Form.SubmitFooter />}
- form={form}
- initialValues={config}
- items={[chat]}
- itemsType={'group'}
- variant={'borderless'}
- onFinish={updateConfig}
- {...FORM_STYLE}
- />
- );
-});
-
-export default AgentChat;
diff --git a/src/features/AgentSetting/AgentModal/ModelSelect.tsx b/src/features/AgentSetting/AgentModal/ModelSelect.tsx
deleted file mode 100644
index 3366532defa..00000000000
--- a/src/features/AgentSetting/AgentModal/ModelSelect.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import { memo } from 'react';
-
-import Select from '@/features/ModelSelect';
-
-import { useStore } from '../store';
-
-const ModelSelect = memo(() => {
- const [model, provider, updateConfig] = useStore((s) => [
- s.config.model,
- s.config.provider,
- s.setAgentConfig,
- ]);
-
- return (
- <Select
- value={{ model, provider }}
- onChange={(props) => {
- updateConfig(props);
- }}
- />
- );
-});
-
-export default ModelSelect;
diff --git a/src/features/AgentSetting/AgentModal/index.tsx b/src/features/AgentSetting/AgentModal/index.tsx
deleted file mode 100644
index e4640f75040..00000000000
--- a/src/features/AgentSetting/AgentModal/index.tsx
+++ /dev/null
@@ -1,374 +0,0 @@
-'use client';
-
-import { type FormGroupItemType, type FormItemProps } from '@lobehub/ui';
-import { Flexbox, Form, Select, SliderWithInput } from '@lobehub/ui';
-import { Form as AntdForm, Switch } from 'antd';
-import { createStaticStyles } from 'antd-style';
-import isEqual from 'fast-deep-equal';
-import { memo, useCallback, useEffect, useRef } from 'react';
-import { useTranslation } from 'react-i18next';
-
-import InfoTooltip from '@/components/InfoTooltip';
-import { FORM_STYLE } from '@/const/layoutTokens';
-import { aiModelSelectors, useAiInfraStore } from '@/store/aiInfra';
-
-import { selectors, useStore } from '../store';
-
-type ParamKey = 'temperature' | 'top_p' | 'presence_penalty' | 'frequency_penalty';
-
-const styles = createStaticStyles(({ css }) => ({
- label: css`
- user-select: none;
- `,
-}));
-
-// Wrapper component for slider with checkbox
-interface SliderWithCheckboxProps {
- checked: boolean;
- disabled: boolean;
- max: number;
- min: number;
- onChange?: (value: number) => void;
- onToggle: (checked: boolean) => void;
- step: number;
- styles: any;
- unlimitedInput?: boolean;
- value?: number;
-}
-
-const SliderWithCheckbox = memo<SliderWithCheckboxProps>(
- ({ value, onChange, disabled, checked, onToggle, min, max, step, unlimitedInput }) => {
- return (
- <Flexbox horizontal align="center" gap={12} justify={'flex-end'} width={300}>
- {!disabled && (
- <div style={{ flex: 1 }}>
- <SliderWithInput
- disabled={disabled}
- max={max}
- min={min}
- step={step}
- unlimitedInput={unlimitedInput}
- value={value}
- onChange={onChange}
- />
- </div>
- )}
- <Switch
- checked={checked}
- size={checked ? 'small' : 'default'}
- onChange={(v) => {
- onToggle(v);
- }}
- />
- </Flexbox>
- );
- },
-);
-
-// Wrapper component for select with checkbox
-interface SelectWithCheckboxProps {
- checked: boolean;
- onChange?: (value: string) => void;
- onToggle: (checked: boolean) => void;
- options: Array<{ label: string; value: string }>;
- value?: string;
-}
-
-const SelectWithCheckbox = memo<SelectWithCheckboxProps>(
- ({ value, onChange, checked, onToggle, options }) => {
- return (
- <Flexbox horizontal align="center" gap={12} justify={'flex-end'} width={300}>
- {checked && (
- <div style={{ flex: 1 }}>
- <Select options={options} value={value} onChange={onChange} />
- </div>
- )}
- <Switch
- checked={checked}
- size={checked ? 'small' : 'default'}
- onChange={(v) => {
- onToggle(v);
- }}
- />
- </Flexbox>
- );
- },
-);
-
-const PARAM_NAME_MAP: Record<ParamKey, (string | number)[]> = {
- frequency_penalty: ['params', 'frequency_penalty'],
- presence_penalty: ['params', 'presence_penalty'],
- temperature: ['params', 'temperature'],
- top_p: ['params', 'top_p'],
-};
-
-const PARAM_DEFAULTS: Record<ParamKey, number> = {
- frequency_penalty: 0,
- presence_penalty: 0,
- temperature: 0.7,
- top_p: 1,
-};
-
-const PARAM_CONFIG = {
- frequency_penalty: {
- descKey: 'settingModel.frequencyPenalty.desc',
- labelKey: 'settingModel.frequencyPenalty.title',
- slider: { max: 2, min: -2, step: 0.1 },
- tag: 'frequency_penalty',
- },
- presence_penalty: {
- descKey: 'settingModel.presencePenalty.desc',
- labelKey: 'settingModel.presencePenalty.title',
- slider: { max: 2, min: -2, step: 0.1 },
- tag: 'presence_penalty',
- },
- temperature: {
- descKey: 'settingModel.temperature.desc',
- labelKey: 'settingModel.temperature.title',
- slider: { max: 2, min: 0, step: 0.1 },
- tag: 'temperature',
- },
- top_p: {
- descKey: 'settingModel.topP.desc',
- labelKey: 'settingModel.topP.title',
- slider: { max: 1, min: 0, step: 0.1 },
- tag: 'top_p',
- },
-} satisfies Record<
- ParamKey,
- {
- descKey: string;
- labelKey: string;
- slider: { max: number; min: number; step: number };
- tag: string;
- }
->;
-
-const AgentModal = memo(() => {
- const { t } = useTranslation('setting');
- const [form] = Form.useForm();
- const config = useStore(selectors.currentAgentConfig, isEqual);
-
- const updateConfig = useStore((s) => s.setAgentConfig);
-
- const { temperature, top_p, presence_penalty, frequency_penalty } = config.params ?? {};
-
- const lastValuesRef = useRef<Record<ParamKey, number | undefined>>({
- frequency_penalty,
- presence_penalty,
- temperature,
- top_p,
- });
-
- useEffect(() => {
- form.setFieldsValue(config);
-
- if (typeof temperature === 'number') lastValuesRef.current.temperature = temperature;
- if (typeof top_p === 'number') lastValuesRef.current.top_p = top_p;
- if (typeof presence_penalty === 'number') {
- lastValuesRef.current.presence_penalty = presence_penalty;
- }
- if (typeof frequency_penalty === 'number') {
- lastValuesRef.current.frequency_penalty = frequency_penalty;
- }
- }, [config, form, temperature, top_p, presence_penalty, frequency_penalty]);
-
- const temperatureValue = AntdForm.useWatch(PARAM_NAME_MAP.temperature, form);
- const topPValue = AntdForm.useWatch(PARAM_NAME_MAP.top_p, form);
- const presencePenaltyValue = AntdForm.useWatch(PARAM_NAME_MAP.presence_penalty, form);
- const frequencyPenaltyValue = AntdForm.useWatch(PARAM_NAME_MAP.frequency_penalty, form);
-
- useEffect(() => {
- if (typeof temperatureValue === 'number') lastValuesRef.current.temperature = temperatureValue;
- }, [temperatureValue]);
-
- useEffect(() => {
- if (typeof topPValue === 'number') lastValuesRef.current.top_p = topPValue;
- }, [topPValue]);
-
- useEffect(() => {
- if (typeof presencePenaltyValue === 'number') {
- lastValuesRef.current.presence_penalty = presencePenaltyValue;
- }
- }, [presencePenaltyValue]);
-
- useEffect(() => {
- if (typeof frequencyPenaltyValue === 'number') {
- lastValuesRef.current.frequency_penalty = frequencyPenaltyValue;
- }
- }, [frequencyPenaltyValue]);
-
- const enabledMap: Record<ParamKey, boolean> = {
- frequency_penalty: typeof frequencyPenaltyValue === 'number',
- presence_penalty: typeof presencePenaltyValue === 'number',
- temperature: typeof temperatureValue === 'number',
- top_p: typeof topPValue === 'number',
- };
-
- const handleToggle = useCallback(
- (key: ParamKey, enabled: boolean) => {
- const namePath = PARAM_NAME_MAP[key];
-
- if (!enabled) {
- const currentValue = form.getFieldValue(namePath);
- if (typeof currentValue === 'number') {
- lastValuesRef.current[key] = currentValue;
- }
- form.setFieldValue(namePath, undefined);
- return;
- }
-
- const fallback = lastValuesRef.current[key];
- const nextValue = typeof fallback === 'number' ? fallback : PARAM_DEFAULTS[key];
- lastValuesRef.current[key] = nextValue;
- form.setFieldValue(namePath, nextValue);
- },
- [form],
- );
-
- // Hide params the selected model rejects outright (e.g. Claude Opus 4.7 drops
- // temperature / top_p). Declared via `settings.disabledParams` on the model card.
- const disabledParams = useAiInfraStore(
- aiModelSelectors.modelDisabledParams(config.model, config.provider ?? ''),
- );
- const visibleParamKeys = (Object.keys(PARAM_CONFIG) as ParamKey[]).filter(
- (key) => !disabledParams?.includes(key),
- );
-
- const paramItems: FormItemProps[] = visibleParamKeys.map((key) => {
- const meta = PARAM_CONFIG[key];
- const enabled = enabledMap[key];
-
- return {
- children: (
- <SliderWithCheckbox
- checked={enabled}
- disabled={!enabled}
- max={meta.slider.max}
- min={meta.slider.min}
- step={meta.slider.step}
- styles={styles}
- onToggle={(checked) => handleToggle(key, checked)}
- />
- ),
- desc: t(meta.descKey as any),
- label: (
- <Flexbox horizontal align={'center'} className={styles.label} gap={8}>
- {t(meta.labelKey as any)}
- <InfoTooltip title={t(meta.descKey as any)} />
- </Flexbox>
- ),
- minWidth: undefined,
- name: PARAM_NAME_MAP[key],
- tag: meta.tag,
- } satisfies FormItemProps;
- });
-
- const maxTokensValue = AntdForm.useWatch(['params', 'max_tokens'], form);
- const reasoningEffortValue = AntdForm.useWatch(['params', 'reasoning_effort'], form);
-
- const model: FormGroupItemType = {
- children: [
- {
- children: <Switch />,
- desc: t('settingChat.enableStreaming.desc'),
- label: t('settingChat.enableStreaming.title'),
- layout: 'horizontal',
- minWidth: undefined,
- name: ['chatConfig', 'enableStreaming'],
- valuePropName: 'checked',
- },
- ...paramItems,
- {
- children: (
- <SliderWithCheckbox
- unlimitedInput
- checked={typeof maxTokensValue === 'number'}
- disabled={typeof maxTokensValue !== 'number'}
- max={32_000}
- min={0}
- step={100}
- styles={styles}
- onToggle={(checked) => {
- if (!checked) {
- form.setFieldValue(['params', 'max_tokens'], undefined);
- } else {
- form.setFieldValue(['params', 'max_tokens'], 4096);
- }
- }}
- />
- ),
- desc: t('settingModel.maxTokens.desc'),
- label: (
- <Flexbox horizontal align={'center'} className={styles.label} gap={8}>
- {t('settingModel.maxTokens.title')}
- <InfoTooltip title={t('settingModel.maxTokens.desc')} />
- </Flexbox>
- ),
- minWidth: undefined,
- name: ['params', 'max_tokens'],
- tag: 'max_tokens',
- },
- {
- children: (
- <SelectWithCheckbox
- checked={typeof reasoningEffortValue === 'string'}
- options={[
- { label: t('settingModel.reasoningEffort.options.low'), value: 'low' },
- { label: t('settingModel.reasoningEffort.options.medium'), value: 'medium' },
- { label: t('settingModel.reasoningEffort.options.high'), value: 'high' },
- ]}
- onToggle={(checked) => {
- if (!checked) {
- form.setFieldValue(['params', 'reasoning_effort'], undefined);
- } else {
- form.setFieldValue(['params', 'reasoning_effort'], 'medium');
- }
- }}
- />
- ),
- desc: t('settingModel.reasoningEffort.desc'),
- label: (
- <Flexbox horizontal align={'center'} className={styles.label} gap={8}>
- {t('settingModel.reasoningEffort.title')}
- <InfoTooltip title={t('settingModel.reasoningEffort.desc')} />
- </Flexbox>
- ),
- minWidth: undefined,
- name: ['params', 'reasoning_effort'],
- tag: 'reasoning_effort',
- },
- ],
- title: t('settingModel.title'),
- };
-
- return (
- <Form
- footer={<Form.SubmitFooter />}
- form={form}
- initialValues={config}
- items={[model]}
- itemsType={'group'}
- variant={'borderless'}
- onFinish={(values) => {
- // Clean up undefined and null values in params to ensure disabled parameters are properly removed
- const cleanedValues = { ...values };
- if (cleanedValues.params) {
- const cleanedParams = { ...cleanedValues.params };
- (Object.keys(cleanedParams) as Array<keyof typeof cleanedParams>).forEach((key) => {
- // Use null as disabled marker (JSON can serialize null, while undefined will be ignored)
- if (cleanedParams[key] === undefined) {
- cleanedParams[key] = null as any;
- }
- });
- cleanedValues.params = cleanedParams as any;
- }
-
- updateConfig(cleanedValues);
- }}
- {...FORM_STYLE}
- />
- );
-});
-
-export default AgentModal;
diff --git a/src/features/AgentSetting/AgentSettingsContent.tsx b/src/features/AgentSetting/AgentSettingsContent.tsx
index c15287eb8b9..ca1057f557e 100644
--- a/src/features/AgentSetting/AgentSettingsContent.tsx
+++ b/src/features/AgentSetting/AgentSettingsContent.tsx
@@ -6,8 +6,6 @@ import { agentSelectors } from '@/store/agent/selectors';
import { ChatSettingsTabs } from '@/store/global/initialState';
import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';
-import AgentChat from './AgentChat';
-import AgentModal from './AgentModal';
import AgentOpening from './AgentOpening';
import AgentSelfIteration from './AgentSelfIteration';
@@ -25,8 +23,6 @@ const AgentSettingsContent = memo<AgentSettingsContentProps>(({ tab, loadingSkel
return (
<>
{tab === ChatSettingsTabs.Opening && <AgentOpening />}
- {tab === ChatSettingsTabs.Chat && <AgentChat />}
- {tab === ChatSettingsTabs.Modal && <AgentModal />}
{enableAgentSelfIteration && tab === ChatSettingsTabs.SelfIteration && <AgentSelfIteration />}
</>
);
diff --git a/src/features/ChatInput/ActionBar/Params/Controls.tsx b/src/features/ChatInput/ActionBar/Params/Controls.tsx
index a909d4d787d..0dd70dd9ec9 100644
--- a/src/features/ChatInput/ActionBar/Params/Controls.tsx
+++ b/src/features/ChatInput/ActionBar/Params/Controls.tsx
@@ -1,5 +1,5 @@
import { DEFAULT_AGENT_CONFIG } from '@lobechat/const';
-import { Flexbox, Icon, SliderWithInput } from '@lobehub/ui';
+import { Flexbox, Icon, Select, SliderWithInput, TextArea } from '@lobehub/ui';
import { Form as AntdForm, Switch } from 'antd';
import { createStaticStyles, cssVar, cx } from 'antd-style';
import { debounce } from 'es-toolkit/compat';
@@ -435,7 +435,7 @@ const ControlLabel = memo<ControlLabelProps>(({ title, tooltip, tag }) => (
));
interface ControlRowProps {
- action: ReactNode;
+ action?: ReactNode;
children?: ReactNode;
muted?: boolean;
tag?: string;
@@ -527,6 +527,17 @@ const Controls = memo<ControlsProps>(({ setUpdating, updating, variant = 'popove
const enableHistoryCount = form.getFieldValue(['chatConfig', 'enableHistoryCount']);
const historyCountValue = form.getFieldValue(['chatConfig', 'historyCount']);
const maxTokensValue = form.getFieldValue(['params', 'max_tokens']);
+ const inputTemplateValue = form.getFieldValue(['chatConfig', 'inputTemplate']);
+ const enableAutoScrollOnStreaming = form.getFieldValue([
+ 'chatConfig',
+ 'enableAutoScrollOnStreaming',
+ ]);
+ const enableStreaming = form.getFieldValue(['chatConfig', 'enableStreaming']);
+ const enableReasoningEffort = form.getFieldValue(['chatConfig', 'enableReasoningEffort']);
+ const reasoningEffortValue = form.getFieldValue(['params', 'reasoning_effort']);
+ const disabledParams = useAiInfraStore(
+ aiModelSelectors.modelDisabledParams(agentModel ?? '', agentProvider ?? ''),
+ );
const { frequency_penalty, presence_penalty, temperature, top_p } = config.params ?? {};
const historyCountFromStore = useAgentStore((s) =>
@@ -657,7 +668,7 @@ const Controls = memo<ControlsProps>(({ setUpdating, updating, variant = 'popove
);
const handleFieldChange = useCallback(
- (namePath: (string | number)[], value: boolean | number) => {
+ (namePath: (string | number)[], value: boolean | number | string) => {
form.setFieldValue(namePath, value);
if (
namePath[0] === 'params' &&
@@ -744,6 +755,47 @@ const Controls = memo<ControlsProps>(({ setUpdating, updating, variant = 'popove
/>
)}
</ControlRow>
+ <ControlRow
+ tag="autoScroll"
+ title={t('settingChat.enableAutoScrollOnStreaming.title')}
+ tooltip={t('settingChat.enableAutoScrollOnStreaming.desc')}
+ action={
+ <Switch
+ checked={Boolean(enableAutoScrollOnStreaming)}
+ size={'small'}
+ onChange={(checked) => {
+ handleFieldChange(['chatConfig', 'enableAutoScrollOnStreaming'], checked);
+ }}
+ />
+ }
+ />
+ <ControlRow
+ tag="streaming"
+ title={t('settingChat.enableStreaming.title')}
+ tooltip={t('settingChat.enableStreaming.desc')}
+ action={
+ <Switch
+ checked={enableStreaming !== false}
+ size={'small'}
+ onChange={(checked) => {
+ handleFieldChange(['chatConfig', 'enableStreaming'], checked);
+ }}
+ />
+ }
+ />
+ <ControlRow
+ tag="inputTemplate"
+ title={t('settingChat.inputTemplate.title')}
+ tooltip={t('settingChat.inputTemplate.desc')}
+ >
+ <TextArea
+ placeholder={t('settingChat.inputTemplate.placeholder')}
+ value={typeof inputTemplateValue === 'string' ? inputTemplateValue : ''}
+ onChange={(e) => {
+ handleFieldChange(['chatConfig', 'inputTemplate'], e.target.value);
+ }}
+ />
+ </ControlRow>
</div>
{hasModelConfig && (
<>
@@ -774,7 +826,7 @@ const Controls = memo<ControlsProps>(({ setUpdating, updating, variant = 'popove
/>
{advancedOpen && (
<div className={styles.advancedContent}>
- {PARAM_ORDER.map((key) => {
+ {PARAM_ORDER.filter((key) => !disabledParams?.includes(key)).map((key) => {
const meta = PARAM_CONFIG[key];
const enabled = enabledMap[key];
@@ -816,6 +868,9 @@ const Controls = memo<ControlsProps>(({ setUpdating, updating, variant = 'popove
checked={Boolean(enableMaxTokens)}
size={'small'}
onChange={(checked) => {
+ if (checked && typeof maxTokensValue !== 'number') {
+ form.setFieldValue(['params', 'max_tokens'], 4096);
+ }
handleFieldChange(['chatConfig', 'enableMaxTokens'], checked);
}}
/>
@@ -828,13 +883,51 @@ const Controls = memo<ControlsProps>(({ setUpdating, updating, variant = 'popove
max={32_000}
min={0}
step={100}
- value={typeof maxTokensValue === 'number' ? maxTokensValue : 0}
+ value={typeof maxTokensValue === 'number' ? maxTokensValue : 4096}
onChange={(value) => {
handleFieldChange(['params', 'max_tokens'], value);
}}
/>
)}
</ControlRow>
+ <ControlRow
+ tag="reasoning_effort"
+ title={t('settingModel.reasoningEffort.title')}
+ tooltip={t('settingModel.reasoningEffort.desc')}
+ action={
+ <Switch
+ checked={Boolean(enableReasoningEffort)}
+ size={'small'}
+ onChange={(checked) => {
+ if (checked && typeof reasoningEffortValue !== 'string') {
+ form.setFieldValue(['params', 'reasoning_effort'], 'medium');
+ }
+ handleFieldChange(['chatConfig', 'enableReasoningEffort'], checked);
+ }}
+ />
+ }
+ >
+ {enableReasoningEffort && (
+ <Select
+ size={'small'}
+ style={{ width: '100%' }}
+ options={[
+ { label: t('settingModel.reasoningEffort.options.low'), value: 'low' },
+ {
+ label: t('settingModel.reasoningEffort.options.medium'),
+ value: 'medium',
+ },
+ { label: t('settingModel.reasoningEffort.options.high'), value: 'high' },
+ ]}
+ value={
+ typeof reasoningEffortValue === 'string' ? reasoningEffortValue : 'medium'
+ }
+ onChange={(value) => {
+ handleFieldChange(['params', 'reasoning_effort'], value);
+ }}
+ />
+ )}
+ </ControlRow>
</div>
)}
</>
diff --git a/src/features/Conversation/store.test.ts b/src/features/Conversation/store.test.ts
index 2e574307e0a..3b13da638b5 100644
--- a/src/features/Conversation/store.test.ts
+++ b/src/features/Conversation/store.test.ts
@@ -59,10 +59,7 @@ vi.mock('@/store/agent', () => ({
vi.mock('@/store/agent/selectors', () => ({
agentChatConfigSelectors: {
- currentChatConfig: vi.fn(() => ({
- enableAutoCreateTopic: false,
- autoCreateTopicThreshold: 5,
- })),
+ currentChatConfig: vi.fn(() => ({})),
},
agentSelectors: {
currentAgentConfig: vi.fn(() => ({ model: 'gpt-4', provider: 'openai' })),
diff --git a/src/locales/default/setting.ts b/src/locales/default/setting.ts
index 09fbba850f3..85ea03218a4 100644
--- a/src/locales/default/setting.ts
+++ b/src/locales/default/setting.ts
@@ -177,8 +177,6 @@ export default {
'agentSkillModal.url.title': 'Import from URL',
'agentSkillModal.url.urlPlaceholder': 'https://example.com/path/to/SKILL.md',
'agentSkillTag': 'Agent Skill',
- 'agentTab.chat': 'Chat Preferences',
- 'agentTab.modal': 'Model Settings',
'agentTab.opening': 'Opening Settings',
'agentTab.plugin': 'Skill Settings',
'agentTab.prompt': 'Agent Profile',
@@ -595,18 +593,12 @@ export default {
'settingAppearance.primaryColor.desc': 'Custom theme color',
'settingAppearance.primaryColor.title': 'Theme Color',
'settingAppearance.title': 'Application Appearance',
- 'settingChat.autoCreateTopicThreshold.desc':
- 'Automatically create a topic when the current message count exceeds this value',
- 'settingChat.autoCreateTopicThreshold.title': 'Message Threshold',
'settingChat.chatStyleType.title': 'Chat Window Style',
'settingChat.chatStyleType.type.chat': 'Conversation Mode',
'settingChat.chatStyleType.type.docs': 'Page Mode',
'settingChat.compressThreshold.desc':
'When the uncompressed history messages exceed this value, compression will be applied',
'settingChat.compressThreshold.title': 'History Message Length Compression Threshold',
- 'settingChat.enableAutoCreateTopic.desc':
- 'Whether to automatically create a topic during the conversation, only effective in temporary topics',
- 'settingChat.enableAutoCreateTopic.title': 'Auto Create Topic',
'settingChat.enableAutoScrollOnStreaming.desc': 'Override global setting for this assistant',
'settingChat.enableAutoScrollOnStreaming.title': 'Auto-scroll During AI Response',
'settingChat.enableCompressHistory.title': 'Enable Automatic Summary of Chat History',
diff --git a/src/routes/(main)/agent/profile/features/AgentSettings/Content.tsx b/src/routes/(main)/agent/profile/features/AgentSettings/Content.tsx
index 12d7d553187..f0f6b4c027d 100644
--- a/src/routes/(main)/agent/profile/features/AgentSettings/Content.tsx
+++ b/src/routes/(main)/agent/profile/features/AgentSettings/Content.tsx
@@ -4,7 +4,7 @@ import { Avatar, Block, Flexbox, Icon, Text } from '@lobehub/ui';
import { type ItemType } from 'antd/es/menu/interface';
import { useTheme } from 'antd-style';
import isEqual from 'fast-deep-equal';
-import { ActivityIcon, BrainIcon, MessageSquareHeartIcon, MessagesSquareIcon } from 'lucide-react';
+import { ActivityIcon, MessageSquareHeartIcon } from 'lucide-react';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { shallow } from 'zustand/shallow';
@@ -27,7 +27,7 @@ const Content = memo(() => {
const config = useAgentStore(agentSelectors.currentAgentConfig, isEqual);
const meta = useAgentStore(agentSelectors.currentAgentMeta, isEqual);
const { enableAgentSelfIteration } = useServerConfigStore(featureFlagsSelectors);
- const [tab, setTab] = useState(isInbox ? ChatSettingsTabs.Modal : ChatSettingsTabs.Opening);
+ const [tab, setTab] = useState(ChatSettingsTabs.Opening);
const updateAgentConfig = async (config: any) => {
if (!agentId) return;
@@ -49,16 +49,6 @@ const Content = memo(() => {
label: t('agentTab.opening'),
}
: null,
- {
- icon: <Icon icon={MessagesSquareIcon} />,
- key: ChatSettingsTabs.Chat,
- label: t('agentTab.chat'),
- },
- {
- icon: <Icon icon={BrainIcon} />,
- key: ChatSettingsTabs.Modal,
- label: t('agentTab.modal'),
- },
enableAgentSelfIteration
? {
icon: <Icon icon={ActivityIcon} />,
diff --git a/src/server/globalConfig/parseDefaultAgent.test.ts b/src/server/globalConfig/parseDefaultAgent.test.ts
index d84d948f3cb..6acdf21ef69 100644
--- a/src/server/globalConfig/parseDefaultAgent.test.ts
+++ b/src/server/globalConfig/parseDefaultAgent.test.ts
@@ -49,9 +49,9 @@ describe('parseAgentConfig', () => {
});
it('parses boolean values correctly', () => {
- const envStr = 'enableAutoCreateTopic=true;enableCompressThreshold=false';
+ const envStr = 'enableHistoryCount=true;enableCompressThreshold=false';
const expected = {
- enableAutoCreateTopic: true,
+ enableHistoryCount: true,
enableCompressThreshold: false,
};
expect(parseAgentConfig(envStr)).toEqual(expected);
@@ -113,10 +113,10 @@ describe('parseAgentConfig', () => {
it('should parsers plugins correctly', () => {
const envStr =
- 'enableAutoCreateTopic=true;model=gemini-pro;provider=google;plugins=lobe-image-designer';
+ 'enableHistoryCount=true;model=gemini-pro;provider=google;plugins=lobe-image-designer';
const expected = {
- enableAutoCreateTopic: true,
+ enableHistoryCount: true,
model: 'gemini-pro',
plugins: ['lobe-image-designer'],
provider: 'google',
diff --git a/src/server/routers/lambda/__tests__/integration/aiAgent/execAgent.integration.test.ts b/src/server/routers/lambda/__tests__/integration/aiAgent/execAgent.integration.test.ts
index 1eabc59f73f..7c06b0a18d2 100644
--- a/src/server/routers/lambda/__tests__/integration/aiAgent/execAgent.integration.test.ts
+++ b/src/server/routers/lambda/__tests__/integration/aiAgent/execAgent.integration.test.ts
@@ -545,7 +545,7 @@ describe('execAgent', () => {
const [agentWithTools] = await serverDB
.insert(agents)
.values({
- chatConfig: { autoCreateTopicThreshold: 2, searchMode: 'auto' },
+ chatConfig: { searchMode: 'auto' },
model: 'gpt-5-pro',
plugins: [],
provider: 'openai',
diff --git a/src/server/routers/lambda/__tests__/integration/aiAgent/multiRoundTools.integration.test.ts b/src/server/routers/lambda/__tests__/integration/aiAgent/multiRoundTools.integration.test.ts
index dca679f658b..b4f764b66b1 100644
--- a/src/server/routers/lambda/__tests__/integration/aiAgent/multiRoundTools.integration.test.ts
+++ b/src/server/routers/lambda/__tests__/integration/aiAgent/multiRoundTools.integration.test.ts
@@ -215,7 +215,7 @@ beforeEach(async () => {
const [agentWithTools] = await serverDB
.insert(agents)
.values({
- chatConfig: { autoCreateTopicThreshold: 2, searchMode: 'auto' },
+ chatConfig: { searchMode: 'auto' },
model: 'gpt-5-pro',
plugins: [],
provider: 'openai',
diff --git a/src/server/routers/lambda/config/index.test.ts b/src/server/routers/lambda/config/index.test.ts
index 30fbb8988ea..529d5c16abb 100644
--- a/src/server/routers/lambda/config/index.test.ts
+++ b/src/server/routers/lambda/config/index.test.ts
@@ -167,12 +167,12 @@ describe('configRouter', () => {
describe('getDefaultAgentConfig', () => {
it('should return the default agent config', async () => {
process.env.DEFAULT_AGENT_CONFIG =
- 'plugins=search-engine,lobe-image-designer;enableAutoCreateTopic=true;model=gemini-pro;provider=google;';
+ 'plugins=search-engine,lobe-image-designer;enableHistoryCount=true;model=gemini-pro;provider=google;';
const response = await router.getDefaultAgentConfig();
expect(response).toEqual({
- enableAutoCreateTopic: true,
+ enableHistoryCount: true,
model: 'gemini-pro',
plugins: ['search-engine', 'lobe-image-designer'],
provider: 'google',
@@ -183,12 +183,12 @@ describe('configRouter', () => {
it('should return another config', async () => {
process.env.DEFAULT_AGENT_CONFIG =
- 'model=meta-11ama/11ama-3-70b-instruct:nitro;provider=openrouter;enableAutoCreateTopic=true;params.max_tokens=700';
+ 'model=meta-11ama/11ama-3-70b-instruct:nitro;provider=openrouter;enableHistoryCount=true;params.max_tokens=700';
const response = await router.getDefaultAgentConfig();
expect(response).toEqual({
- enableAutoCreateTopic: true,
+ enableHistoryCount: true,
model: 'meta-11ama/11ama-3-70b-instruct:nitro',
params: { max_tokens: 700 },
provider: 'openrouter',
diff --git a/src/services/chat/chat.test.ts b/src/services/chat/chat.test.ts
index 5d6b7b6ad90..b51aa9de8a8 100644
--- a/src/services/chat/chat.test.ts
+++ b/src/services/chat/chat.test.ts
@@ -81,7 +81,6 @@ const createMockResolvedConfig = (overrides?: {
},
chatConfig: {
searchMode: 'off',
- autoCreateTopicThreshold: 2,
...overrides?.chatConfig,
},
enabledManifests: overrides?.enabledManifests ?? [],
diff --git a/src/services/chat/mecha/modelParamsResolver.test.ts b/src/services/chat/mecha/modelParamsResolver.test.ts
index 1b380515b33..cdd66c9326e 100644
--- a/src/services/chat/mecha/modelParamsResolver.test.ts
+++ b/src/services/chat/mecha/modelParamsResolver.test.ts
@@ -9,7 +9,6 @@ import { resolveModelExtendParams } from './modelParamsResolver';
describe('resolveModelExtendParams', () => {
const mockAiInfraStoreState = { someState: true };
const createChatConfig = (config: Partial<LobeAgentChatConfig> = {}): LobeAgentChatConfig => ({
- autoCreateTopicThreshold: 2,
...config,
});
diff --git a/src/store/global/initialState.ts b/src/store/global/initialState.ts
index 3de8f5c3fdf..5baa4477eec 100644
--- a/src/store/global/initialState.ts
+++ b/src/store/global/initialState.ts
@@ -22,8 +22,6 @@ export enum SidebarTabKey {
}
export enum ChatSettingsTabs {
- Chat = 'chat',
- Modal = 'modal',
Opening = 'opening',
Plugin = 'plugin',
Prompt = 'prompt',
diff --git a/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap b/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap
index a8790469ef8..8023d1c9bb6 100644
--- a/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap
+++ b/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap
@@ -104,9 +104,7 @@ exports[`settingsSelectors > defaultAgent > should merge DEFAULT_AGENT and s.set
{
"config": {
"chatConfig": {
- "autoCreateTopicThreshold": 2,
"enableAgentMode": true,
- "enableAutoCreateTopic": true,
"enableCompressHistory": true,
"enableContextCompression": true,
"enableHistoryCount": false,
@@ -149,9 +147,7 @@ exports[`settingsSelectors > defaultAgent > should merge DEFAULT_AGENT and s.set
exports[`settingsSelectors > defaultAgentConfig > should merge DEFAULT_AGENT_CONFIG and defaultAgent(s).config correctly 1`] = `
{
"chatConfig": {
- "autoCreateTopicThreshold": 2,
"enableAgentMode": true,
- "enableAutoCreateTopic": true,
"enableCompressHistory": true,
"enableContextCompression": true,
"enableHistoryCount": false,