@wendongfly/myhi 1.3.6 → 1.3.7
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/dist/chat.html +5 -0
- package/dist/index.js +1 -1
- package/dist/index.min.js +90 -90
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -1160,6 +1160,8 @@
|
|
|
1160
1160
|
} else if (msg.subtype === 'interrupted') {
|
|
1161
1161
|
addStatusMessage('查询已中断');
|
|
1162
1162
|
setWorkState('idle');
|
|
1163
|
+
} else if (msg.subtype === 'info' && msg.message) {
|
|
1164
|
+
addStatusMessage(msg.message);
|
|
1163
1165
|
}
|
|
1164
1166
|
break;
|
|
1165
1167
|
case 'assistant':
|
|
@@ -1183,6 +1185,9 @@
|
|
|
1183
1185
|
case 'result':
|
|
1184
1186
|
removeThinking();
|
|
1185
1187
|
setWorkState('idle');
|
|
1188
|
+
if (msg.result) {
|
|
1189
|
+
addAssistantMessage(typeof msg.result === 'string' ? msg.result : JSON.stringify(msg.result));
|
|
1190
|
+
}
|
|
1186
1191
|
const cost = msg.total_cost_usd ? ` ($${msg.total_cost_usd.toFixed(4)})` : '';
|
|
1187
1192
|
addStatusMessage(`完成${cost}`);
|
|
1188
1193
|
break;
|