@myun/gimi-chat 0.8.9 → 0.9.0

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.
@@ -807,7 +807,7 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
807
807
  return function (_x14) {
808
808
  return _ref11.apply(this, arguments);
809
809
  };
810
- }(), [dispatch, inputValue, streamChat, streamEsAbortRef]);
810
+ }(), [dispatch, inputValue, streamEsAbortRef]);
811
811
  var fillInputModel = React.useCallback(function (value, messageList) {
812
812
  if ((messageList === null || messageList === void 0 ? void 0 : messageList.length) > 0 && value && messageList[messageList.length - 1].moduleType === 'ask') {
813
813
  var targetChatItem = _toConsumableArray(messageList).reverse().find(function (item) {
@@ -1143,7 +1143,6 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
1143
1143
  setDisableSend(true);
1144
1144
  var uploadFile = fileList[0];
1145
1145
  var isLastMessageEmptyUserChat = (lastMessage === null || lastMessage === void 0 ? void 0 : lastMessage.moduleType) === 'ask'; // 空内容
1146
- // const isDerectlySend = Boolean(lastMessage.role === 0 && lastMessage.messageFiles?.content); // 最后一条消息是用户上传的excel
1147
1146
  if (!isLastMessageEmptyUserChat) {
1148
1147
  var shouldEnableUpload = uploadFile.status === FileStatus.UPLOAD_FAILED || uploadFile.status === FileStatus.ANALYSE_FAILED;
1149
1148
  var newMessageList = [].concat(_toConsumableArray(messageList.slice(0, -2)), [_objectSpread(_objectSpread({}, messageList[messageList.length - 2]), {}, {