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.
- package/index.js +1 -1
- 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 {
|