@ibiz-template-plugin/ai-chat 0.0.52 → 0.0.53
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 +25 -5
- package/dist/index.legacy.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2644,7 +2644,14 @@ const hu = (n) => {
|
|
|
2644
2644
|
}, []);
|
|
2645
2645
|
const a = (g, y) => {
|
|
2646
2646
|
g.stopPropagation(), y.isExpand = !y.isExpand, t.value = [...t.value];
|
|
2647
|
-
}, c = (g) => /* @__PURE__ */ m("div", { className: e.e("footer"), children:
|
|
2647
|
+
}, c = (g) => /* @__PURE__ */ m("div", { className: e.e("footer"), children: [
|
|
2648
|
+
g.type === "CLUSTER" && (g.source_count || g.source_count === 0) && /* @__PURE__ */ m("div", { className: e.em("footer", "description"), children: [
|
|
2649
|
+
"由",
|
|
2650
|
+
g.source_count,
|
|
2651
|
+
"个原文段落智能总结生成"
|
|
2652
|
+
] }),
|
|
2653
|
+
/* @__PURE__ */ m("div", { className: e.em("footer", "docname"), children: g.docname })
|
|
2654
|
+
] }), d = (g) => {
|
|
2648
2655
|
var y;
|
|
2649
2656
|
return /* @__PURE__ */ m(
|
|
2650
2657
|
"div",
|
|
@@ -2654,8 +2661,9 @@ const hu = (n) => {
|
|
|
2654
2661
|
/* @__PURE__ */ m(
|
|
2655
2662
|
"div",
|
|
2656
2663
|
{
|
|
2657
|
-
className: e.
|
|
2658
|
-
|
|
2664
|
+
className: e.e("similarity"),
|
|
2665
|
+
style: "--percent: ".concat((g.similarity * 100).toFixed(2), "%;"),
|
|
2666
|
+
children: "SCORE ".concat(g.similarity.toFixed(2))
|
|
2659
2667
|
}
|
|
2660
2668
|
),
|
|
2661
2669
|
/* @__PURE__ */ m("div", { className: e.em("item", "content"), title: g.content, children: g.content })
|
|
@@ -2666,7 +2674,18 @@ const hu = (n) => {
|
|
|
2666
2674
|
}, u = (g) => {
|
|
2667
2675
|
var y, v;
|
|
2668
2676
|
return g.type === "CLUSTER" ? /* @__PURE__ */ m("div", { className: "".concat(e.e("chunk"), " ").concat(e.e("cluster")), children: [
|
|
2669
|
-
/* @__PURE__ */ m("div", { className: e.em("cluster", "
|
|
2677
|
+
/* @__PURE__ */ m("div", { className: e.em("cluster", "header"), children: [
|
|
2678
|
+
/* @__PURE__ */ m(
|
|
2679
|
+
"div",
|
|
2680
|
+
{
|
|
2681
|
+
className: e.e("similarity"),
|
|
2682
|
+
style: "--percent: ".concat((g.similarity * 100).toFixed(2), "%;"),
|
|
2683
|
+
children: "SCORE ".concat(g.similarity.toFixed(2))
|
|
2684
|
+
}
|
|
2685
|
+
),
|
|
2686
|
+
/* @__PURE__ */ m("div", { className: e.em("cluster", "title"), children: "[摘要]" }),
|
|
2687
|
+
/* @__PURE__ */ m("div", { className: e.em("cluster", "summary"), title: g.content, children: g.content })
|
|
2688
|
+
] }),
|
|
2670
2689
|
/* @__PURE__ */ m("div", { className: e.em("cluster", "content"), children: [
|
|
2671
2690
|
/* @__PURE__ */ m(
|
|
2672
2691
|
"div",
|
|
@@ -2780,7 +2799,8 @@ const fu = (n) => {
|
|
|
2780
2799
|
}
|
|
2781
2800
|
)
|
|
2782
2801
|
] });
|
|
2783
|
-
}
|
|
2802
|
+
};
|
|
2803
|
+
const pu = (n) => {
|
|
2784
2804
|
var d, u, h;
|
|
2785
2805
|
const e = new $("image-tool-call"), t = L(!1), i = L(!1), s = L(!1);
|
|
2786
2806
|
let r;
|