@myun/gimi-chat 0.9.62 → 0.9.63
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.
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
.skillItem {
|
|
2
2
|
display: inline-block;
|
|
3
|
-
|
|
4
|
-
padding: 0 8px;
|
|
5
|
-
height: 24px;
|
|
3
|
+
padding: 2px 8px;
|
|
6
4
|
border-radius: 10px;
|
|
7
5
|
margin-right: 6px;
|
|
8
6
|
background-color: #E3E3E1;
|
|
@@ -13,6 +11,7 @@
|
|
|
13
11
|
height: 14px;
|
|
14
12
|
margin-right: 4px;
|
|
15
13
|
vertical-align: middle;
|
|
14
|
+
border-radius: unset;
|
|
16
15
|
}
|
|
17
16
|
.skillItem .name {
|
|
18
17
|
font-size: 14px;
|
|
@@ -403,7 +403,6 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
|
|
|
403
403
|
moduleType: dataObj.moduleType,
|
|
404
404
|
artifacts: dataObj.artifacts || []
|
|
405
405
|
})]);
|
|
406
|
-
console.log('handleArtifactStreamRs-----', newMessageList);
|
|
407
406
|
messageListRef.current = newMessageList;
|
|
408
407
|
dispatch(setMessageList({
|
|
409
408
|
messageList: newMessageList
|
|
@@ -565,7 +564,6 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
|
|
|
565
564
|
// if (isSystemAuto) return;
|
|
566
565
|
setIgnoreOnMessage(true);
|
|
567
566
|
currentMessageList = messageListRef.current;
|
|
568
|
-
console.log('currentMessageList-----', currentMessageList);
|
|
569
567
|
lastToolList = _toConsumableArray(currentMessageList[currentMessageList.length - 1].toolList || []);
|
|
570
568
|
newMessageList = [];
|
|
571
569
|
if (type === 'user_confirm') {
|
|
@@ -604,7 +602,6 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
|
|
|
604
602
|
return v.moduleType !== "agent" && v.moduleType !== 'end';
|
|
605
603
|
}))))]);
|
|
606
604
|
}
|
|
607
|
-
console.log('end---------', newMessageList);
|
|
608
605
|
dispatch(setMessageList({
|
|
609
606
|
messageList: newMessageList
|
|
610
607
|
}));
|
|
@@ -615,13 +612,13 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
|
|
|
615
612
|
// 获取最新的agent详情,防止redux异步更新
|
|
616
613
|
agentDetail = agentInfo || agentObjRef.current; // 获取推荐追问
|
|
617
614
|
if (!((agentDetail === null || agentDetail === void 0 ? void 0 : agentDetail.isEnableRelated) === 1 && (type === 'end' || type === 'COMPLETED'))) {
|
|
618
|
-
_context5.next =
|
|
615
|
+
_context5.next = 12;
|
|
619
616
|
break;
|
|
620
617
|
}
|
|
621
618
|
setMsgLoading(true);
|
|
622
|
-
_context5.next =
|
|
619
|
+
_context5.next = 12;
|
|
623
620
|
return getRecommendList(newMessageList, lastId, statusRef.current);
|
|
624
|
-
case
|
|
621
|
+
case 12:
|
|
625
622
|
// 获取相关课程
|
|
626
623
|
userInput = newMessageList[newMessageList.length - 2].content;
|
|
627
624
|
getRelatedCourses(userInput || '');
|
|
@@ -632,7 +629,7 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
|
|
|
632
629
|
}
|
|
633
630
|
setMsgLoading(false);
|
|
634
631
|
onSendEnd === null || onSendEnd === void 0 || onSendEnd(newMessageList[newMessageList.length - 1]);
|
|
635
|
-
case
|
|
632
|
+
case 17:
|
|
636
633
|
case "end":
|
|
637
634
|
return _context5.stop();
|
|
638
635
|
}
|