koishi-plugin-group-analysis-mx 1.6.0 → 1.6.1
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/lib/service/llm.js +2 -1
- package/package.json +2 -1
package/lib/service/llm.js
CHANGED
|
@@ -43,7 +43,8 @@ class LLMService extends koishi_1.Service {
|
|
|
43
43
|
throw new Error('未找到 YAML 响应。');
|
|
44
44
|
}
|
|
45
45
|
try {
|
|
46
|
-
|
|
46
|
+
// json: true 容忍重复 key(LLM 偶尔会重复输出 sender 等字段),后者覆盖前者
|
|
47
|
+
const data = (0, js_yaml_1.load)(yamlMatch[1], { json: true });
|
|
47
48
|
if (Array.isArray(data)) {
|
|
48
49
|
this.ctx.logger.info(`成功解析 ${data.length} 条数据。`);
|
|
49
50
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-group-analysis-mx",
|
|
3
3
|
"description": "群聊分析插件 - 生成精美群聊统计报告,支持 AI 话题总结(独立版,不依赖 ChatLuna)",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.1",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.mjs",
|
|
7
7
|
"typings": "lib/index.d.ts",
|
|
@@ -53,3 +53,4 @@
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
|
+
|