bhd-components 0.10.37 → 0.10.38

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.
@@ -2678,7 +2678,7 @@ function BhdAppLayout(props) {
2678
2678
  });
2679
2679
  }
2680
2680
 
2681
- var modules_63b47c51$f = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__6e43f92b","ChatWindow_Modal":"index_module_ChatWindow_Modal__6e43f92b","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__6e43f92b","header_wrap":"index_module_header_wrap__6e43f92b","top":"index_module_top__6e43f92b","user":"index_module_user__6e43f92b","count":"index_module_count__6e43f92b","operate":"index_module_operate__6e43f92b","line":"index_module_line__6e43f92b","popover_main":"index_module_popover_main__6e43f92b","popover":"index_module_popover__6e43f92b","header_wrap_newlabo":"index_module_header_wrap_newlabo__6e43f92b","Drawer_main":"index_module_Drawer_main__6e43f92b","loading":"index_module_loading__6e43f92b","message_con":"index_module_message_con__6e43f92b","left":"index_module_left__6e43f92b","head_sculpture":"index_module_head_sculpture__6e43f92b","main_content":"index_module_main_content__6e43f92b","right":"index_module_right__6e43f92b","itemcontent":"index_module_itemcontent__6e43f92b","main":"index_module_main__6e43f92b","main_content_flag":"index_module_main_content_flag__6e43f92b","operate_modal":"index_module_operate_modal__6e43f92b","operate_modal_showtop":"index_module_operate_modal_showtop__6e43f92b","operate_modal_bottom":"index_module_operate_modal_bottom__6e43f92b","active":"index_module_active__6e43f92b","stop_generate":"index_module_stop_generate__6e43f92b","icon":"index_module_icon__6e43f92b","find_teacher":"index_module_find_teacher__6e43f92b","stop_findTeacher":"index_module_stop_findTeacher__6e43f92b","content":"index_module_content__6e43f92b","content_child":"index_module_content_child__6e43f92b","mermaid":"index_module_mermaid__6e43f92b","maskZoomBox":"index_module_maskZoomBox__6e43f92b","zoomBox":"index_module_zoomBox__6e43f92b","find_teacher_con":"index_module_find_teacher_con__6e43f92b","sign":"index_module_sign__6e43f92b","ask_question":"index_module_ask_question__6e43f92b","bottom":"index_module_bottom__6e43f92b","association_problem":"index_module_association_problem__6e43f92b","association_problem_flag":"index_module_association_problem_flag__6e43f92b","related_issues_flag":"index_module_related_issues_flag__6e43f92b","img_con":"index_module_img_con__6e43f92b","mask_zoom":"index_module_mask_zoom__6e43f92b","img_con2":"index_module_img_con2__6e43f92b","copyCode":"index_module_copyCode__6e43f92b","time":"index_module_time__6e43f92b","citation_content":"index_module_citation_content__6e43f92b","text_exceed":"index_module_text_exceed__6e43f92b","popover_content":"index_module_popover_content__6e43f92b","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__6e43f92b","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__6e43f92b","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__6e43f92b","issues_list_teacherList":"index_module_issues_list_teacherList__6e43f92b","item":"index_module_item__6e43f92b","issues_list":"index_module_issues_list__6e43f92b","issues_list_flag":"index_module_issues_list_flag__6e43f92b","Drawer_buttom":"index_module_Drawer_buttom__6e43f92b","input_wrap":"index_module_input_wrap__6e43f92b","input":"index_module_input__6e43f92b","picture_layout":"index_module_picture_layout__6e43f92b","icon_close":"index_module_icon_close__6e43f92b","icon_zoom":"index_module_icon_zoom__6e43f92b","anticon":"index_module_anticon__6e43f92b","no_AI":"index_module_no_AI__6e43f92b","screenshot":"index_module_screenshot__6e43f92b","disabled":"index_module_disabled__6e43f92b","content_main":"index_module_content_main__6e43f92b","content_con":"index_module_content_con__6e43f92b","delete_quote":"index_module_delete_quote__6e43f92b","sending":"index_module_sending__6e43f92b","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__6e43f92b","main_list":"index_module_main_list__6e43f92b","chat_content":"index_module_chat_content__6e43f92b","popover_main_content":"index_module_popover_main_content__6e43f92b","popover_main_content_name":"index_module_popover_main_content_name__6e43f92b","teacher_layout":"index_module_teacher_layout__6e43f92b","delete":"index_module_delete__6e43f92b","num":"index_module_num__6e43f92b","shrink":"index_module_shrink__6e43f92b","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__6e43f92b","teacher_layout_modal":"index_module_teacher_layout_modal__6e43f92b","ai":"index_module_ai__6e43f92b","user_info":"index_module_user_info__6e43f92b","message":"index_module_message__6e43f92b","con":"index_module_con__6e43f92b","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__6e43f92b","history_list":"index_module_history_list__6e43f92b","search_layout":"index_module_search_layout__6e43f92b","mymove":"index_module_mymove__6e43f92b","title":"index_module_title__6e43f92b","search_top":"index_module_search_top__6e43f92b","list_item":"index_module_list_item__6e43f92b","list_summary":"index_module_list_summary__6e43f92b","head_img":"index_module_head_img__6e43f92b","list_desc":"index_module_list_desc__6e43f92b","name":"index_module_name__6e43f92b","decs":"index_module_decs__6e43f92b","open":"index_module_open__6e43f92b","list_summary_active":"index_module_list_summary_active__6e43f92b","list_detail":"index_module_list_detail__6e43f92b","list":"index_module_list__6e43f92b","list_more":"index_module_list_more__6e43f92b","no_data":"index_module_no_data__6e43f92b","history_list_broadside":"index_module_history_list_broadside__6e43f92b","teacher_list":"index_module_teacher_list__6e43f92b","screenshot_Modal":"index_module_screenshot_Modal__6e43f92b","ReactCrop":"index_module_ReactCrop__6e43f92b","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__6e43f92b","viewMedia_Modal":"index_module_viewMedia_Modal__6e43f92b","viewMemaid":"index_module_viewMemaid__6e43f92b"};
2681
+ var modules_63b47c51$f = {"service_ChatWindow_Drawer":"index_module_service_ChatWindow_Drawer__e488bd5b","ChatWindow_Modal":"index_module_ChatWindow_Modal__e488bd5b","ChatWindow_Drawer":"index_module_ChatWindow_Drawer__e488bd5b","header_wrap":"index_module_header_wrap__e488bd5b","top":"index_module_top__e488bd5b","user":"index_module_user__e488bd5b","count":"index_module_count__e488bd5b","operate":"index_module_operate__e488bd5b","line":"index_module_line__e488bd5b","popover_main":"index_module_popover_main__e488bd5b","popover":"index_module_popover__e488bd5b","header_wrap_newlabo":"index_module_header_wrap_newlabo__e488bd5b","Drawer_main":"index_module_Drawer_main__e488bd5b","loading":"index_module_loading__e488bd5b","message_con":"index_module_message_con__e488bd5b","left":"index_module_left__e488bd5b","head_sculpture":"index_module_head_sculpture__e488bd5b","main_content":"index_module_main_content__e488bd5b","right":"index_module_right__e488bd5b","itemcontent":"index_module_itemcontent__e488bd5b","main":"index_module_main__e488bd5b","main_content_flag":"index_module_main_content_flag__e488bd5b","operate_modal":"index_module_operate_modal__e488bd5b","operate_modal_showtop":"index_module_operate_modal_showtop__e488bd5b","operate_modal_bottom":"index_module_operate_modal_bottom__e488bd5b","active":"index_module_active__e488bd5b","stop_generate":"index_module_stop_generate__e488bd5b","icon":"index_module_icon__e488bd5b","find_teacher":"index_module_find_teacher__e488bd5b","stop_findTeacher":"index_module_stop_findTeacher__e488bd5b","content":"index_module_content__e488bd5b","content_child":"index_module_content_child__e488bd5b","mermaid":"index_module_mermaid__e488bd5b","maskZoomBox":"index_module_maskZoomBox__e488bd5b","zoomBox":"index_module_zoomBox__e488bd5b","find_teacher_con":"index_module_find_teacher_con__e488bd5b","sign":"index_module_sign__e488bd5b","ask_question":"index_module_ask_question__e488bd5b","bottom":"index_module_bottom__e488bd5b","association_problem":"index_module_association_problem__e488bd5b","association_problem_flag":"index_module_association_problem_flag__e488bd5b","related_issues_flag":"index_module_related_issues_flag__e488bd5b","img_con":"index_module_img_con__e488bd5b","mask_zoom":"index_module_mask_zoom__e488bd5b","img_con2":"index_module_img_con2__e488bd5b","copyCode":"index_module_copyCode__e488bd5b","time":"index_module_time__e488bd5b","citation_content":"index_module_citation_content__e488bd5b","text_exceed":"index_module_text_exceed__e488bd5b","popover_content":"index_module_popover_content__e488bd5b","Drawer_main_newlabo":"index_module_Drawer_main_newlabo__e488bd5b","Drawer_main_newlabo_no_pic":"index_module_Drawer_main_newlabo_no_pic__e488bd5b","Drawer_buttom_Issues_List":"index_module_Drawer_buttom_Issues_List__e488bd5b","issues_list_teacherList":"index_module_issues_list_teacherList__e488bd5b","item":"index_module_item__e488bd5b","issues_list":"index_module_issues_list__e488bd5b","issues_list_flag":"index_module_issues_list_flag__e488bd5b","Drawer_buttom":"index_module_Drawer_buttom__e488bd5b","input_wrap":"index_module_input_wrap__e488bd5b","input":"index_module_input__e488bd5b","picture_layout":"index_module_picture_layout__e488bd5b","icon_close":"index_module_icon_close__e488bd5b","icon_zoom":"index_module_icon_zoom__e488bd5b","anticon":"index_module_anticon__e488bd5b","no_AI":"index_module_no_AI__e488bd5b","screenshot":"index_module_screenshot__e488bd5b","disabled":"index_module_disabled__e488bd5b","content_main":"index_module_content_main__e488bd5b","content_con":"index_module_content_con__e488bd5b","delete_quote":"index_module_delete_quote__e488bd5b","sending":"index_module_sending__e488bd5b","Drawer_buttom_Issues_List_newlabo":"index_module_Drawer_buttom_Issues_List_newlabo__e488bd5b","main_list":"index_module_main_list__e488bd5b","chat_content":"index_module_chat_content__e488bd5b","popover_main_content":"index_module_popover_main_content__e488bd5b","popover_main_content_name":"index_module_popover_main_content_name__e488bd5b","teacher_layout":"index_module_teacher_layout__e488bd5b","delete":"index_module_delete__e488bd5b","num":"index_module_num__e488bd5b","shrink":"index_module_shrink__e488bd5b","teacher_layout_newlabo":"index_module_teacher_layout_newlabo__e488bd5b","teacher_layout_modal":"index_module_teacher_layout_modal__e488bd5b","ai":"index_module_ai__e488bd5b","user_info":"index_module_user_info__e488bd5b","message":"index_module_message__e488bd5b","con":"index_module_con__e488bd5b","teacher_layout_modal_newlabo":"index_module_teacher_layout_modal_newlabo__e488bd5b","history_list":"index_module_history_list__e488bd5b","search_layout":"index_module_search_layout__e488bd5b","mymove":"index_module_mymove__e488bd5b","title":"index_module_title__e488bd5b","search_top":"index_module_search_top__e488bd5b","list_item":"index_module_list_item__e488bd5b","list_summary":"index_module_list_summary__e488bd5b","head_img":"index_module_head_img__e488bd5b","list_desc":"index_module_list_desc__e488bd5b","name":"index_module_name__e488bd5b","decs":"index_module_decs__e488bd5b","open":"index_module_open__e488bd5b","list_summary_active":"index_module_list_summary_active__e488bd5b","list_detail":"index_module_list_detail__e488bd5b","list":"index_module_list__e488bd5b","list_more":"index_module_list_more__e488bd5b","no_data":"index_module_no_data__e488bd5b","history_list_broadside":"index_module_history_list_broadside__e488bd5b","teacher_list":"index_module_teacher_list__e488bd5b","screenshot_Modal":"index_module_screenshot_Modal__e488bd5b","ReactCrop":"index_module_ReactCrop__e488bd5b","screenshot_Modal_btn":"index_module_screenshot_Modal_btn__e488bd5b","viewMedia_Modal":"index_module_viewMedia_Modal__e488bd5b","viewMemaid":"index_module_viewMemaid__e488bd5b","content_put":"index_module_content_put__e488bd5b"};
2682
2682
 
2683
2683
  function BaseHOC(key) {
2684
2684
  return function(props) {
@@ -8205,6 +8205,12 @@ function escapeHtml(str) {
8205
8205
  }
8206
8206
  return str;
8207
8207
  }
8208
+ var exactRegex = /class\s*=\s*["']think-block["']/;
8209
+ // 去掉think
8210
+ var replaceThinkAndYaml = function() {
8211
+ var text = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
8212
+ return text.replace(/```(\s)?yaml(?:.|\n)*?```/ig, "").replace(/<thinking>([\s\S]*?)<\/thinking>/g, "").replace(RegExp('<div\\s+class="think-block">.*?<\\/div>', "gs"), "");
8213
+ };
8208
8214
  r.initialize({
8209
8215
  startOnLoad: false,
8210
8216
  theme: "default",
@@ -8287,6 +8293,7 @@ var CustomerService = function(props) {
8287
8293
  var getLisyFlagRef = useRef(0);
8288
8294
  var _useState36 = _sliced_to_array(useState(false), 2); _useState36[0]; _useState36[1]; //是否显示mermaid弹窗
8289
8295
  var _useState37 = _sliced_to_array(useState(""), 2); _useState37[0]; _useState37[1]; //mermaid内容
8296
+ var shouqiTimer = useRef(null);
8290
8297
  var remarkable = new Remarkable({
8291
8298
  html: true,
8292
8299
  highlight: function highlight(str, lang) {
@@ -8373,6 +8380,7 @@ var CustomerService = function(props) {
8373
8380
  // //获取热门推荐
8374
8381
  // videoPageQuestiionsList(1);
8375
8382
  // }
8383
+ console.log("initShowType", initShowType);
8376
8384
  setShowType(initShowType);
8377
8385
  }, [
8378
8386
  initShowType
@@ -9542,6 +9550,7 @@ var CustomerService = function(props) {
9542
9550
  //先请求问题列表
9543
9551
  videoPageQuestiionsList(3);
9544
9552
  }
9553
+ var hasYamlStarted = false;
9545
9554
  //使用fetchEventSource接收数据
9546
9555
  fetchEventSource("".concat(urllocation, "/chat-service/public/v1.0/chat-with-ai/messages"), {
9547
9556
  method: "POST",
@@ -9649,7 +9658,12 @@ var CustomerService = function(props) {
9649
9658
  //识别的内容
9650
9659
  // console.log("eventSource msg: ", event.data);
9651
9660
  var msg = JSON.parse(event.data);
9652
- if (msg.message) ;
9661
+ if (msg.message) {
9662
+ if (!hasYamlStarted && msg.message && /```\s*yaml/.test(content)) {
9663
+ hasYamlStarted = true;
9664
+ }
9665
+ msg.message = msg.message.replace(/<thinking>/g, '<div class="think-block">').replace(/<\/thinking>/g, "</div>\n");
9666
+ }
9653
9667
  finishedRef.current = false;
9654
9668
  setFinished(false);
9655
9669
  msgStreamingCountRef.current = msgStreamingCountRef.current + 1;
@@ -9666,6 +9680,20 @@ var CustomerService = function(props) {
9666
9680
  videoPageQuestiionsList(2);
9667
9681
  }
9668
9682
  testLabQuestion(JSON.parse(data).message, content, "");
9683
+ if (shouqiTimer.current) {
9684
+ clearTimeout(shouqiTimer.current);
9685
+ }
9686
+ shouqiTimer.current = setTimeout(function() {
9687
+ if ($(".think-block").last().css("display") === "block") {
9688
+ clearTimeout(shouqiTimer.current);
9689
+ $(".think-block").last().parent().find(".think-block").css({
9690
+ display: "none"
9691
+ });
9692
+ $(".think-block").last().parent().parent().find("i").css({
9693
+ transform: "rotate(180deg)"
9694
+ });
9695
+ }
9696
+ }, 1000);
9669
9697
  }
9670
9698
  },
9671
9699
  onclose: function() {
@@ -9685,7 +9713,8 @@ var CustomerService = function(props) {
9685
9713
  // console.log(aiSendQuestions().abort(),'slkdsdsdsd')
9686
9714
  if (pageNumHistory > 1) return;
9687
9715
  var obj = msg;
9688
- var id = msg.messageId;
9716
+ var tempId = "ai thought process";
9717
+ var id = tempId; // 原:let id = msg.messageId; 备注:解决思考过程返回的messageId和下边回复的内容值不同问题,新:改成临时固定相同id,finished完成时替换为实际返回的messageId值
9689
9718
  setHistoryMessageList(function(prevHistoryMessageList) {
9690
9719
  var list1 = prevHistoryMessageList;
9691
9720
  //删除临时数据
@@ -9752,6 +9781,17 @@ var CustomerService = function(props) {
9752
9781
  console.log("isPosition", isPosition.current);
9753
9782
  scrollToBottom();
9754
9783
  if (msg.finished) {
9784
+ setHistoryMessageList(function(prevHistoryMessageList) {
9785
+ return prevHistoryMessageList.map(function(item) {
9786
+ if (item.id === tempId) {
9787
+ return _object_spread_props(_object_spread({}, item), {
9788
+ id: msg.messageId
9789
+ });
9790
+ } else {
9791
+ return item;
9792
+ }
9793
+ });
9794
+ });
9755
9795
  console.log("返回完成", msg, msgStreamingCountRef.current);
9756
9796
  //发送结束
9757
9797
  finishedRef.current = true;
@@ -9859,6 +9899,12 @@ var CustomerService = function(props) {
9859
9899
  // getHistoryMessage(page-1,5,'1',dataList);
9860
9900
  // return;
9861
9901
  // }
9902
+ dataList = dataList.map(function(ele, index) {
9903
+ if (ele.message.includes("<thinking>") && !ele.message.includes("</thinking>")) {
9904
+ ele.message = ele.message + "</thinking>";
9905
+ }
9906
+ return ele;
9907
+ });
9862
9908
  setPageCount(Math.ceil(total / maxPageSize));
9863
9909
  setFirstItemIndex(total - maxPageSize * (page - 1));
9864
9910
  var newHistoryMessageList = [];
@@ -10691,6 +10737,9 @@ var CustomerService = function(props) {
10691
10737
  message = removeMermaidBlockComments(message);
10692
10738
  }
10693
10739
  message = handleRenderSyntaxBlock(message, finishedRef.current || i != historyMessageList.length - 1);
10740
+ message = message.replace(/<thinking>([\s\S]*?)<\/thinking>/g, '<div class="think-block">$1</div>\n');
10741
+ message = message.replace(/```(\s)?yaml(?:.|\n)*?```/ig, "");
10742
+ message = message.replace(/```\s*yaml[\s\S]*/, "");
10694
10743
  if (lastId == item.id && keyWordProblem != "") {
10695
10744
  //点击历史记录时,找到关键字,防止关键字和标签名重复
10696
10745
  // let key_sign = 'sign_'+new Date().getTime();+'sign';
@@ -10739,6 +10788,8 @@ var CustomerService = function(props) {
10739
10788
  /*#__PURE__*/ jsx("i", {
10740
10789
  className: "yinyong_quote1",
10741
10790
  onClick: function() {
10791
+ // 问题的引用
10792
+ item.message = replaceThinkAndYaml(item.message);
10742
10793
  setCitationContent({
10743
10794
  content: item.message,
10744
10795
  id: item.id,
@@ -10820,14 +10871,14 @@ var CustomerService = function(props) {
10820
10871
  item.quotedMessage && /*#__PURE__*/ jsxs("div", {
10821
10872
  className: styles.citation_content,
10822
10873
  children: [
10823
- getByteLen(item.quotedMessage) > 120 ? /*#__PURE__*/ jsx(Tooltip, {
10874
+ getByteLen(replaceThinkAndYaml(item.quotedMessage)) > 120 ? /*#__PURE__*/ jsx(Tooltip, {
10824
10875
  overlayClassName: styles.popover_main_content,
10825
- title: item.quotedMessage,
10876
+ title: replaceThinkAndYaml(item.quotedMessage),
10826
10877
  placement: "leftTop",
10827
10878
  children: /*#__PURE__*/ jsxs("p", {
10828
10879
  className: styles.text_exceed,
10829
10880
  children: [
10830
- item.quotedMessage,
10881
+ replaceThinkAndYaml(item.quotedMessage),
10831
10882
  /*#__PURE__*/ jsx(RightOutlined, {})
10832
10883
  ]
10833
10884
  })
@@ -10981,6 +11032,35 @@ var CustomerService = function(props) {
10981
11032
  /*#__PURE__*/ jsxs("div", {
10982
11033
  className: styles.content,
10983
11034
  children: [
11035
+ !exactRegex.test(message) ? null : /*#__PURE__*/ jsxs("div", {
11036
+ id: "click_" + i,
11037
+ onClick: function() {
11038
+ if ($("#click_".concat(i, " + p .think-block")).css("display") === "inline-block" || $("#click_".concat(i, " + p .think-block")).css("display") === "block") {
11039
+ $("#click_".concat(i, " + p .think-block")).css({
11040
+ display: "none"
11041
+ });
11042
+ $("#click_".concat(i, " i")).css({
11043
+ transform: "rotate(180deg)"
11044
+ });
11045
+ } else {
11046
+ $("#click_".concat(i, " + p .think-block")).css({
11047
+ display: "block"
11048
+ });
11049
+ $("#click_".concat(i, " i")).css({
11050
+ transform: "rotate(0deg)"
11051
+ });
11052
+ }
11053
+ },
11054
+ className: styles.content_put,
11055
+ children: [
11056
+ /*#__PURE__*/ jsx("span", {
11057
+ children: "思考过程"
11058
+ }),
11059
+ /*#__PURE__*/ jsx("i", {
11060
+ className: "iconfont iconfangxiang-xiaxiao"
11061
+ })
11062
+ ]
11063
+ }),
10984
11064
  item.message != "AI助手繁忙,请稍后再提问或" && /*#__PURE__*/ jsx("p", {
10985
11065
  dangerouslySetInnerHTML: {
10986
11066
  __html: message
@@ -11065,14 +11145,14 @@ var CustomerService = function(props) {
11065
11145
  item.quotedMessage && /*#__PURE__*/ jsxs("div", {
11066
11146
  className: styles.citation_content,
11067
11147
  children: [
11068
- getByteLen(item.quotedMessage) > 120 ? /*#__PURE__*/ jsx(Tooltip, {
11148
+ getByteLen(replaceThinkAndYaml(item.quotedMessage)) > 120 ? /*#__PURE__*/ jsx(Tooltip, {
11069
11149
  overlayClassName: styles.popover_main_content,
11070
- title: item.quotedMessage,
11150
+ title: replaceThinkAndYaml(item.quotedMessage),
11071
11151
  placement: "rightTop",
11072
11152
  children: /*#__PURE__*/ jsxs("p", {
11073
11153
  className: styles.text_exceed,
11074
11154
  children: [
11075
- item.quotedMessage,
11155
+ replaceThinkAndYaml(item.quotedMessage),
11076
11156
  /*#__PURE__*/ jsx(RightOutlined, {})
11077
11157
  ]
11078
11158
  })
@@ -11300,6 +11380,8 @@ var CustomerService = function(props) {
11300
11380
  /*#__PURE__*/ jsx("i", {
11301
11381
  className: "yinyong_quote1",
11302
11382
  onClick: function() {
11383
+ // 答案的引用
11384
+ item.message = replaceThinkAndYaml(item.message);
11303
11385
  setCitationContent({
11304
11386
  content: item.message,
11305
11387
  imageUrl: item.extraInfo && JSON.parse(extraInfo).length > 0 && JSON.parse(extraInfo)[0].key == "imageUrl" && JSON.parse(extraInfo)[0].value,
@@ -11506,6 +11588,7 @@ var CustomerService = function(props) {
11506
11588
  /*#__PURE__*/ jsx("i", {
11507
11589
  className: "yinyong_quote1",
11508
11590
  onClick: function() {
11591
+ item.message = replaceThinkAndYaml(item.message);
11509
11592
  setCitationContent({
11510
11593
  content: item.message,
11511
11594
  imageUrl: item.extraInfo && JSON.parse(extraInfo).length > 0 && JSON.parse(extraInfo)[0].key == "imageUrl" && JSON.parse(extraInfo)[0].value,
@@ -15341,8 +15424,17 @@ var VirtuosoList = /*#__PURE__*/ forwardRef(function(props, ref) {
15341
15424
  } else {
15342
15425
  // 没有跨天 判断是否相隔超过10分钟
15343
15426
  if (timeObj.timestamp - beforeTimeObj.timestamp > 10 * 60 * 1000) {
15344
- // 超过10分钟 显示 时分
15345
- time = "".concat(timeObj.hours, ":").concat(timeObj.minutes);
15427
+ // 超过10分钟 显示
15428
+ var now = new Date();
15429
+ // 当天的日期
15430
+ var nowTimeStr = "".concat(now.getFullYear(), "-").concat(String(now.getMonth() + 1).padStart(2, "0"), "-").concat(String(now.getDate()).padStart(2, "0"));
15431
+ if (nowTimeStr === "".concat(timeObj.year, "-").concat(timeObj.month, "-").concat(timeObj.day)) {
15432
+ // 是当天 显示 时分
15433
+ time = "".concat(timeObj.hours, ":").concat(timeObj.minutes);
15434
+ } else {
15435
+ // 不是当天 显示 年月日 时分
15436
+ time = "".concat(timeObj.year, "-").concat(timeObj.month, "-").concat(timeObj.day, " ").concat(timeObj.hours, ":").concat(timeObj.minutes);
15437
+ }
15346
15438
  }
15347
15439
  }
15348
15440
  }
@@ -16207,7 +16299,7 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
16207
16299
  apiRef.contentApi.addMsg({
16208
16300
  id: msgId,
16209
16301
  createTime: createTime,
16210
- content: "正在输入...",
16302
+ content: "正在思考...",
16211
16303
  location: "left",
16212
16304
  reference: recordObj.reference || null,
16213
16305
  source: null,
@@ -16217,7 +16309,7 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
16217
16309
  apiRef.contentApi.addMsg({
16218
16310
  id: msgId,
16219
16311
  createTime: createTime,
16220
- content: "正在输入...",
16312
+ content: "正在思考...",
16221
16313
  location: "left",
16222
16314
  reference: null,
16223
16315
  source: null,