@myun/gimi-chat 0.9.59 → 0.9.61

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