@blueking/ai-blueking 2.2.2-beta.8 → 2.2.2-beta.9
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/manager/business/chat-business-manager.d.ts +3 -0
- package/dist/manager/business/chat-business-manager.d.ts.map +1 -1
- package/dist/standalone/index.es.min.js +7 -4
- package/dist/standalone/index.iife.min.js +2 -2
- package/dist/standalone/index.umd.min.js +2 -2
- package/dist/vue2/index.es.min.js +7 -4
- package/dist/vue2/index.iife.min.js +3 -3
- package/dist/vue2/index.umd.min.js +3 -3
- package/dist/vue3/index.es.min.js +7 -4
- package/dist/vue3/index.iife.min.js +2 -2
- package/dist/vue3/index.umd.min.js +2 -2
- package/package.json +3 -3
|
@@ -642,7 +642,9 @@ var ve = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAAGVn0euAAAA
|
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
644
|
}, C = (e) => {
|
|
645
|
-
|
|
645
|
+
if (!v()) return;
|
|
646
|
+
let t = e;
|
|
647
|
+
(t?.type === X.RunFinished || t?.type === X.RunError) && (p = !0), s.onMessage?.call(s, e);
|
|
646
648
|
}, w = () => {
|
|
647
649
|
v() && (i.value = !0, s.onStart?.call(s));
|
|
648
650
|
};
|
|
@@ -1741,9 +1743,10 @@ var Je = (e) => {
|
|
|
1741
1743
|
};
|
|
1742
1744
|
}
|
|
1743
1745
|
}, tt = (e) => ({
|
|
1744
|
-
getMessages: (t, n, r) => e.get("session_content/content/", {
|
|
1746
|
+
getMessages: (t, n, r, i) => e.get("session_content/content/", {
|
|
1745
1747
|
session_code: t,
|
|
1746
|
-
limit: n
|
|
1748
|
+
limit: n,
|
|
1749
|
+
fuzzy: i
|
|
1747
1750
|
}, r).then((e) => e.map($e)),
|
|
1748
1751
|
plusMessage: (t, n) => e.post("session_content/", et(t), n).then($e),
|
|
1749
1752
|
modifyMessage: (t, n) => e.put(`session_content/${t.id}/`, et(t), n).then($e),
|
|
@@ -3155,7 +3158,7 @@ var bn = class {
|
|
|
3155
3158
|
let e = this.sessionModule?.current?.value?.sessionCode ?? "";
|
|
3156
3159
|
this._isStopLoading.value = !0;
|
|
3157
3160
|
try {
|
|
3158
|
-
|
|
3161
|
+
await this.agentModule.stopChat(e), this._isGenerating.value = !1, this.emit("stop", {});
|
|
3159
3162
|
} catch (e) {
|
|
3160
3163
|
throw console.error("Failed to stop generation:", e), this.emit("chat-error", {
|
|
3161
3164
|
action: "stop",
|