Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Commit a542f12

Browse files
authored
Merge pull request #88 from ywh555hhh/patch-1
docs: clarify segmented_reply words_count_threshold behavior
2 parents dc4954b + b2826ac commit a542f12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zh/config/astrbot-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ ID 白名单。填写后,将只处理所填写的 ID 发来的消息事件。
212212
- `interval_method`: 分段间隔方法。可选值为 `random``log`。默认为 `random`
213213
- `interval`: 分段间隔时间。对于 `random` 方法,填写两个逗号分隔的数字,表示最小和最大间隔时间(单位:秒)。对于 `log` 方法,填写一个数字,表示对数基底。默认为 `"1.5,3.5"`
214214
- `log_base`: 对数基底,仅在 `interval_method``log` 时适用。默认为 `2.6`
215-
- `words_count_threshold`: 触发分段回复的最小字数阈值。默认为 `150`
215+
- `words_count_threshold`: 分段回复的字数上限。只有字数小于此值的消息才会被分段,超过此值的长消息将直接发送(不分段)。默认为 `150`
216216
- `regex`: 用于分隔一段消息。默认情况下会根据句号、问号等标点符号分隔。`re.findall(r'<regex>', text)`。默认值为 `".*?[。?!~…]+|.+$"`
217217
- `content_cleanup_rule`: 移除分段后的内容中的指定的内容。支持正则表达式。如填写 `[。?!]` 将移除所有的句号、问号、感叹号。`re.sub(r'<regex>', '', text)`
218218

0 commit comments

Comments
 (0)