@mxmweb/rtext 1.6.21 → 1.6.22
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/index.js +7 -5
- package/package.json +1 -1
- package/stats.html +1 -1
- package/utils/sseThoughtChainHandler.d.ts +2 -0
package/index.js
CHANGED
|
@@ -31731,7 +31731,7 @@ function b8(e, t) {
|
|
|
31731
31731
|
e.reply?.content && t.onContentUpdate(e.reply.content);
|
|
31732
31732
|
}
|
|
31733
31733
|
function y8(e, t) {
|
|
31734
|
-
let r = null, n = null, a = null, l = null, c = null;
|
|
31734
|
+
let r = null, n = null, a = null, l = null, c = null, d = null;
|
|
31735
31735
|
try {
|
|
31736
31736
|
if (e.reference && e.reference !== "[]" && e.reference !== "null" && (typeof e.reference == "string" ? r = JSON.parse(e.reference) : r = e.reference), e.webReference && e.webReference !== "[]" && e.webReference !== "null" && (typeof e.webReference == "string" ? n = JSON.parse(e.webReference) : n = e.webReference), e.graphReference && e.graphReference !== "[]" && e.graphReference !== "null" && (e.graphReference, a = e.graphReference), e.databaseReference && e.databaseReference !== "[]" && e.databaseReference !== "null" && (typeof e.databaseReference == "string" ? l = JSON.parse(e.databaseReference) : l = e.databaseReference), e.knowledgeBases !== null && e.knowledgeBases !== void 0)
|
|
31737
31737
|
if (Array.isArray(e.knowledgeBases))
|
|
@@ -31739,12 +31739,13 @@ function y8(e, t) {
|
|
|
31739
31739
|
else if (typeof e.knowledgeBases == "string" && e.knowledgeBases !== "[]" && e.knowledgeBases !== "null")
|
|
31740
31740
|
try {
|
|
31741
31741
|
c = JSON.parse(e.knowledgeBases);
|
|
31742
|
-
} catch (
|
|
31743
|
-
console.warn("\u89E3\u6790 knowledgeBases \u5B57\u7B26\u4E32\u5931\u8D25:",
|
|
31742
|
+
} catch (m) {
|
|
31743
|
+
console.warn("\u89E3\u6790 knowledgeBases \u5B57\u7B26\u4E32\u5931\u8D25:", m);
|
|
31744
31744
|
}
|
|
31745
31745
|
else typeof e.knowledgeBases == "object" && (c = e.knowledgeBases);
|
|
31746
|
-
|
|
31747
|
-
|
|
31746
|
+
e.faqReference !== void 0 && e.faqReference !== null && (d = e.faqReference);
|
|
31747
|
+
} catch (m) {
|
|
31748
|
+
console.warn("\u89E3\u6790\u5F15\u7528\u6570\u636E\u5931\u8D25:", m, e);
|
|
31748
31749
|
}
|
|
31749
31750
|
t.onReferencesUpdate({
|
|
31750
31751
|
reference: r,
|
|
@@ -31752,6 +31753,7 @@ function y8(e, t) {
|
|
|
31752
31753
|
graphReference: a,
|
|
31753
31754
|
databaseReference: l,
|
|
31754
31755
|
knowledgeBases: c,
|
|
31756
|
+
faqReference: d,
|
|
31755
31757
|
resultType: e.resultType,
|
|
31756
31758
|
respTime: e.respTime
|
|
31757
31759
|
});
|