@e-llm-studio/instant-learning 1.3.24-alpha.4 → 1.3.25
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/cjs/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +14 -22
- package/dist/cjs/features/IL-OTJ/_components/ChatComponents/ChatComponent.js.map +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/VariantCard.js +5 -18
- package/dist/cjs/features/LearningManagement/RuleContent/VariantCard.js.map +1 -1
- package/dist/cjs/features/LearningManagement/utils/learningMetadataUtils.js +43 -0
- package/dist/cjs/features/LearningManagement/utils/learningMetadataUtils.js.map +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponents/ChatComponent.js +14 -22
- package/dist/features/IL-OTJ/_components/ChatComponents/ChatComponent.js.map +1 -1
- package/dist/features/LearningManagement/RuleContent/VariantCard.js +5 -18
- package/dist/features/LearningManagement/RuleContent/VariantCard.js.map +1 -1
- package/dist/features/LearningManagement/utils/learningMetadataUtils.js +43 -1
- package/dist/features/LearningManagement/utils/learningMetadataUtils.js.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ChatComponents/ChatComponent.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/utils/learningMetadataUtils.d.ts +6 -0
- package/dist/types/src/features/LearningManagement/utils/learningMetadataUtils.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -666,7 +666,7 @@ ${liveContent}` : liveContent;
|
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
const handleMessages = (data, explainabilityMap, accordianMessageArray, userQuestionTime, userInputParam, isFirstQuestionSent, customId) => {
|
|
669
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
669
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
|
|
670
670
|
let headerAcknowledgement;
|
|
671
671
|
if ((_b = (_a = data == null ? void 0 : data.chatStream) == null ? void 0 : _a.continueChatResult) == null ? void 0 : _b.header_message) {
|
|
672
672
|
const headerMsg = {
|
|
@@ -729,28 +729,20 @@ ${liveContent}` : liveContent;
|
|
|
729
729
|
});
|
|
730
730
|
if ((assistantObject == null ? void 0 : assistantObject.content) !== "" || (assistantObject == null ? void 0 : assistantObject.orchestratorAndAgentsMessages) && (assistantObject == null ? void 0 : assistantObject.orchestratorAndAgentsMessages.length) > 0) {
|
|
731
731
|
setMessageLoading(false);
|
|
732
|
-
setMessages(
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
) :
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
time: userQuestionTime,
|
|
745
|
-
isFirstQuestionSent: isFirstQuestionSent || false,
|
|
746
|
-
id: customId || ((_b2 = (_a2 = data == null ? void 0 : data.chatStream) == null ? void 0 : _a2.continueChatResult) == null ? void 0 : _b2.requestId) || "",
|
|
747
|
-
requestId: (_e2 = (_d2 = (_c2 = data == null ? void 0 : data.chatStream) == null ? void 0 : _c2.continueChatResult) == null ? void 0 : _d2.requestId) != null ? _e2 : ""
|
|
748
|
-
},
|
|
749
|
-
assistantObject
|
|
750
|
-
];
|
|
751
|
-
});
|
|
732
|
+
setMessages([
|
|
733
|
+
...messages,
|
|
734
|
+
{
|
|
735
|
+
role: "user",
|
|
736
|
+
content: userInputParam || "",
|
|
737
|
+
time: userQuestionTime,
|
|
738
|
+
isFirstQuestionSent: isFirstQuestionSent || false,
|
|
739
|
+
id: customId || ((_y = (_x = data == null ? void 0 : data.chatStream) == null ? void 0 : _x.continueChatResult) == null ? void 0 : _y.requestId) || "",
|
|
740
|
+
requestId: (_B = (_A = (_z = data == null ? void 0 : data.chatStream) == null ? void 0 : _z.continueChatResult) == null ? void 0 : _A.requestId) != null ? _B : ""
|
|
741
|
+
},
|
|
742
|
+
assistantObject
|
|
743
|
+
]);
|
|
752
744
|
}
|
|
753
|
-
setIsStreamEnd((
|
|
745
|
+
setIsStreamEnd((_D = (_C = data == null ? void 0 : data.chatStream) == null ? void 0 : _C.continueChatResult) == null ? void 0 : _D.isEnd);
|
|
754
746
|
}
|
|
755
747
|
};
|
|
756
748
|
const handleStreamTimeout = React.useCallback((requestId, reason = "inactivity") => {
|