koishi-plugin-chatluna-think-viewer 1.0.4 → 1.0.5

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 (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -104,7 +104,7 @@ function apply(ctx, config) {
104
104
  if (!text) return '未找到可解析的回复内容。';
105
105
 
106
106
  const think = formatThink(extractThink(text));
107
- if (!think) return '上一次回复中没有 <think> 字段。';
107
+ if (!think) return config.emptyMessage || '上一次回复中没有 <think> 字段。';
108
108
 
109
109
  if (config.renderImage && ctx.chatluna?.renderer) {
110
110
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-chatluna-think-viewer",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "index.js",
5
5
  "description": "通过命令/关键词查看 chatluna-character 最近一次回复中的 <think> 思考内容。",
6
6
  "license": "MIT",