@ibiz-template-plugin/ai-chat 0.0.80 → 0.0.81

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/index.es.js CHANGED
@@ -5429,24 +5429,6 @@ const Tt = new B("markdown-message"), h2 = (n) => {
5429
5429
  }
5430
5430
  };
5431
5431
  P(() => {
5432
- if (window.ibiz.log.debug(
5433
- "markdown-message-conentchange------消息内容",
5434
- e.content
5435
- ), window.ibiz.log.debug(
5436
- "markdown-message-conentchange------md编辑器实例",
5437
- r.value
5438
- ), window.ibiz.log.debug("markdown-message------消息内容长度", t), t >= 0 && r.value) {
5439
- if (e.content && e.content.indexOf("<think>") !== -1) {
5440
- const { isThoughtCompleted: g, thoughtContent: b, answerContent: w } = m(e.content);
5441
- c(g, b), o(w);
5442
- } else
5443
- o(e.content);
5444
- window.ibiz.log.debug(
5445
- "markdown-message-conentchange------设置消息内容",
5446
- s.value.remainingText
5447
- ), r.value.setMarkdown(s.value.remainingText || ""), d(e.suggestions);
5448
- }
5449
- }, [e, t]), P(() => {
5450
5432
  let g = "";
5451
5433
  if (window.ibiz.log.debug(
5452
5434
  "markdown-message-init------计算前的消息内容",
@@ -5488,7 +5470,25 @@ const Tt = new B("markdown-message"), h2 = (n) => {
5488
5470
  onClickPreview: v
5489
5471
  }
5490
5472
  });
5491
- }, []);
5473
+ }, []), P(() => {
5474
+ if (window.ibiz.log.debug(
5475
+ "markdown-message-conentchange------消息内容",
5476
+ e.content
5477
+ ), window.ibiz.log.debug(
5478
+ "markdown-message-conentchange------md编辑器实例",
5479
+ r.value
5480
+ ), window.ibiz.log.debug("markdown-message------消息内容长度", t), t >= 0 && r.value) {
5481
+ if (e.content && e.content.indexOf("<think>") !== -1) {
5482
+ const { isThoughtCompleted: g, thoughtContent: b, answerContent: w } = m(e.content);
5483
+ c(g, b), o(w);
5484
+ } else
5485
+ o(e.content);
5486
+ window.ibiz.log.debug(
5487
+ "markdown-message-conentchange------设置消息内容",
5488
+ s.value.remainingText
5489
+ ), r.value.setMarkdown(s.value.remainingText || ""), d(e.suggestions);
5490
+ }
5491
+ }, [e, t]);
5492
5492
  const y = (g) => {
5493
5493
  var w, C;
5494
5494
  const b = (g === "markdown" ? (w = r.value) == null ? void 0 : w.getMarkdown() : (C = i.current) == null ? void 0 : C.innerText) || "";
@@ -20662,7 +20662,7 @@ const bc = new B("chat-messages"), wc = (n) => {
20662
20662
  }
20663
20663
  )
20664
20664
  },
20665
- "".concat(g.messageid, "_").concat(g.completed ? "completed" : "incomplete")
20665
+ "".concat(g.messageid)
20666
20666
  ) : null;
20667
20667
  }),
20668
20668
  /* @__PURE__ */ p(