Skip to content

Commit 031290f

Browse files
committed
feat(ltm): pre-fill default LTM summary prompt in config and i18n
1 parent 8a501bd commit 031290f

4 files changed

Lines changed: 13 additions & 5 deletions

File tree

astrbot/core/config/default.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,15 @@
227227
"ltm_summary_trigger_rounds": 80,
228228
"ltm_summary_keep_recent_rounds": 30,
229229
"ltm_summary_provider_id": "",
230-
"ltm_summary_prompt": "",
230+
"ltm_summary_prompt": (
231+
"Merge the older conversation rounds below into the existing "
232+
"group-chat memory summary. "
233+
"Preserve: user identities (names, nicknames, roles), recurring topics, "
234+
"decisions made, preferences expressed, and unresolved tasks or questions. "
235+
"Drop: transient greetings, small talk, and redundant confirmations. "
236+
"Keep the summary concise and factual. "
237+
"Output only the updated summary text, with no preamble or meta-commentary."
238+
),
231239
"ltm_raw_records_max_bytes": 500000,
232240
# When building user segments, both limits are active simultaneously:
233241
# whichever cap is hit first (by count or by chars) stops accumulation.
@@ -4195,7 +4203,7 @@
41954203
"provider_ltm_settings.ltm_summary_prompt": {
41964204
"description": "LTM 摘要提示词",
41974205
"type": "string",
4198-
"hint": "llm_summary 策略的自定义摘要 prompt,留空使用内置默认。",
4206+
"hint": "llm_summary 策略的自定义摘要 prompt,不更改以使用内置默认。",
41994207
"condition": {
42004208
"provider_ltm_settings.ltm_compaction_strategy": "llm_summary",
42014209
},

dashboard/src/i18n/locales/en-US/features/config-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@
10271027
},
10281028
"ltm_summary_prompt": {
10291029
"description": "LTM Summary Prompt",
1030-
"hint": "Custom summary prompt for llm_summary strategy. Leave empty for built-in default."
1030+
"hint": "Custom summary prompt for llm_summary strategy. Keep unchanged to use the built-in default."
10311031
},
10321032
"ltm_raw_records_max_bytes": {
10331033
"description": "Raw Message Buffer Memory Limit",

dashboard/src/i18n/locales/ru-RU/features/config-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@
10281028
},
10291029
"ltm_summary_prompt": {
10301030
"description": "Промпт для LTM резюме",
1031-
"hint": "Свой промпт для llm_summary. Оставьте пустым для встроенного по умолчанию."
1031+
"hint": "Свой промпт для llm_summary. Не изменяйте, чтобы использовать встроенный по умолчанию."
10321032
},
10331033
"ltm_raw_records_max_bytes": {
10341034
"description": "Лимит буфера сообщений",

dashboard/src/i18n/locales/zh-CN/features/config-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@
10291029
},
10301030
"ltm_summary_prompt": {
10311031
"description": "LTM 摘要提示词",
1032-
"hint": "llm_summary 策略的自定义摘要 prompt,留空使用内置默认"
1032+
"hint": "llm_summary 策略的自定义摘要 prompt,不更改以使用内置默认"
10331033
},
10341034
"ltm_raw_records_max_bytes": {
10351035
"description": "原始消息缓冲区内存上限",

0 commit comments

Comments
 (0)