@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.
@@ -20427,7 +20427,9 @@ var dT = /* @__PURE__ */ function(e) {
20427
20427
  });
20428
20428
  }
20429
20429
  }, C = (e) => {
20430
- v() && (e?.type === vT.RunFinished && (p = !0), s.onMessage?.call(s, e));
20430
+ if (!v()) return;
20431
+ let t = e;
20432
+ (t?.type === vT.RunFinished || t?.type === vT.RunError) && (p = !0), s.onMessage?.call(s, e);
20431
20433
  }, T = () => {
20432
20434
  v() && (i.value = !0, s.onStart?.call(s));
20433
20435
  };
@@ -21526,9 +21528,10 @@ var KT = (e) => {
21526
21528
  };
21527
21529
  }
21528
21530
  }, $T = (e) => ({
21529
- getMessages: (t, n, r) => e.get("session_content/content/", {
21531
+ getMessages: (t, n, r, i) => e.get("session_content/content/", {
21530
21532
  session_code: t,
21531
- limit: n
21533
+ limit: n,
21534
+ fuzzy: i
21532
21535
  }, r).then((e) => e.map(ZT)),
21533
21536
  plusMessage: (t, n) => e.post("session_content/", QT(t), n).then(ZT),
21534
21537
  modifyMessage: (t, n) => e.put(`session_content/${t.id}/`, QT(t), n).then(ZT),
@@ -55182,7 +55185,7 @@ var vZ = class {
55182
55185
  let e = this.sessionModule?.current?.value?.sessionCode ?? "";
55183
55186
  this._isStopLoading.value = !0;
55184
55187
  try {
55185
- this.agentModule.abortChat(), await this.agentModule.stopChat(e), this._isGenerating.value = !1, this.emit("stop", {});
55188
+ await this.agentModule.stopChat(e), this._isGenerating.value = !1, this.emit("stop", {});
55186
55189
  } catch (e) {
55187
55190
  throw console.error("Failed to stop generation:", e), this.emit("chat-error", {
55188
55191
  action: "stop",