@myun/gimi-chat 0.9.59 → 0.9.60

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