@myun/gimi-chat 0.9.49 → 0.9.50

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.
@@ -345,7 +345,7 @@ var AnswerItem = function AnswerItem(_ref) {
345
345
  artifacts: item.artifacts
346
346
  }), showOperation && /*#__PURE__*/React.createElement("div", {
347
347
  className: styles.opera
348
- }, (showOpera === null || showOpera === void 0 ? void 0 : showOpera(item.id)) && !item.loading && /*#__PURE__*/React.createElement("div", {
348
+ }, (showOpera === null || showOpera === void 0 ? void 0 : showOpera(item.id)) && !item.loading && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
349
349
  className: styles.opera_item
350
350
  }, enableCopy && /*#__PURE__*/React.createElement(CopyButton, {
351
351
  item: item,
@@ -366,7 +366,7 @@ var AnswerItem = function AnswerItem(_ref) {
366
366
  onRegenerateClick: onRegenerateClick
367
367
  })), /*#__PURE__*/React.createElement("div", {
368
368
  className: styles.totalTokensWrap
369
- }, item !== null && item !== void 0 && item.durationMs ? formatDurationMs(item.durationMs) : '', " ", platform === 'preview' && item.totalTokens ? " | ".concat(item.totalTokens, " Tokens") : '')), (item.relatedResourceList || []).length > 0 && (showCommend === null || showCommend === void 0 ? void 0 : showCommend(item.id)) && /*#__PURE__*/React.createElement("div", {
369
+ }, item !== null && item !== void 0 && item.durationMs ? formatDurationMs(item.durationMs) : '', " ", platform === 'preview' && item.totalTokens ? " | ".concat(item.totalTokens, " Tokens") : ''))), (item.relatedResourceList || []).length > 0 && (showCommend === null || showCommend === void 0 ? void 0 : showCommend(item.id)) && /*#__PURE__*/React.createElement("div", {
370
370
  className: styles.quickInputList
371
371
  }, (item.relatedResourceList || []).map(function (item, index) {
372
372
  return /*#__PURE__*/React.createElement("div", {
@@ -292,6 +292,11 @@
292
292
  :global(.markdown_container) {
293
293
  max-width: 800px;
294
294
  }
295
+ :global(.markdown_container) img {
296
+ max-width: 200px;
297
+ max-height: 200px;
298
+ border-radius: 16px;
299
+ }
295
300
  @media (min-width: 1920px) {
296
301
  :global(.markdown_container) {
297
302
  max-width: 1000px;
@@ -351,6 +351,8 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
351
351
  }));
352
352
  }, [dispatch]);
353
353
  var handleToolStreamRs = React.useCallback(function (dataObj) {
354
+ // 只处理工作流模式下的 tool_result,其他情况暂不处理
355
+ if (dataObj.moduleType === 'tool_result' && dataObj.name !== 'executeWorkflow') return;
354
356
  setStatus(2);
355
357
  var messageList = messageListRef.current;
356
358
  var lastMessage = messageList[messageList.length - 1];