@myun/gimi-chat 0.9.61 → 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,7 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
|
|
|
403
403
|
moduleType: dataObj.moduleType,
|
|
404
404
|
artifacts: dataObj.artifacts || []
|
|
405
405
|
})]);
|
|
406
|
-
|
|
406
|
+
messageListRef.current = newMessageList;
|
|
407
407
|
dispatch(setMessageList({
|
|
408
408
|
messageList: newMessageList
|
|
409
409
|
}));
|
|
@@ -564,7 +564,6 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
|
|
|
564
564
|
// if (isSystemAuto) return;
|
|
565
565
|
setIgnoreOnMessage(true);
|
|
566
566
|
currentMessageList = messageListRef.current;
|
|
567
|
-
console.log('currentMessageList-----', currentMessageList);
|
|
568
567
|
lastToolList = _toConsumableArray(currentMessageList[currentMessageList.length - 1].toolList || []);
|
|
569
568
|
newMessageList = [];
|
|
570
569
|
if (type === 'user_confirm') {
|
|
@@ -603,7 +602,6 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
|
|
|
603
602
|
return v.moduleType !== "agent" && v.moduleType !== 'end';
|
|
604
603
|
}))))]);
|
|
605
604
|
}
|
|
606
|
-
console.log('end---------', newMessageList);
|
|
607
605
|
dispatch(setMessageList({
|
|
608
606
|
messageList: newMessageList
|
|
609
607
|
}));
|
|
@@ -614,13 +612,13 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
|
|
|
614
612
|
// 获取最新的agent详情,防止redux异步更新
|
|
615
613
|
agentDetail = agentInfo || agentObjRef.current; // 获取推荐追问
|
|
616
614
|
if (!((agentDetail === null || agentDetail === void 0 ? void 0 : agentDetail.isEnableRelated) === 1 && (type === 'end' || type === 'COMPLETED'))) {
|
|
617
|
-
_context5.next =
|
|
615
|
+
_context5.next = 12;
|
|
618
616
|
break;
|
|
619
617
|
}
|
|
620
618
|
setMsgLoading(true);
|
|
621
|
-
_context5.next =
|
|
619
|
+
_context5.next = 12;
|
|
622
620
|
return getRecommendList(newMessageList, lastId, statusRef.current);
|
|
623
|
-
case
|
|
621
|
+
case 12:
|
|
624
622
|
// 获取相关课程
|
|
625
623
|
userInput = newMessageList[newMessageList.length - 2].content;
|
|
626
624
|
getRelatedCourses(userInput || '');
|
|
@@ -631,7 +629,7 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
|
|
|
631
629
|
}
|
|
632
630
|
setMsgLoading(false);
|
|
633
631
|
onSendEnd === null || onSendEnd === void 0 || onSendEnd(newMessageList[newMessageList.length - 1]);
|
|
634
|
-
case
|
|
632
|
+
case 17:
|
|
635
633
|
case "end":
|
|
636
634
|
return _context5.stop();
|
|
637
635
|
}
|