@myun/gimi-chat 0.9.19 → 0.9.21

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.
@@ -23,7 +23,7 @@ import VoiceCheckDialog from "../voice-check-dialog";
23
23
  import VoiceCommunication from "../chat-voice/VoiceCommunication";
24
24
  import VoiceRecord from "../chat-voice/VoiceRecord";
25
25
  import VoiceRecording from "../voice-recording";
26
- import deepThinkActive from "../../assets/image/deepthinkActive.png";
26
+ // import deepThinkActive from "../../assets/image/deepthinkActive.png";
27
27
  import { Tooltip } from "@douyinfe/semi-ui";
28
28
  import styles from "./index.module.css";
29
29
  import FileUpload from "../file-upload";
@@ -38,6 +38,7 @@ import AIChatDialogue from "../ai-chat-dialogue";
38
38
  import { Keydown, TitleSlot } from "./extension";
39
39
  import QuotedContent from "../quoted-content";
40
40
  import { ReferencesEdit } from "../reference-content";
41
+ import IconFontCom from "../iconfont-com";
41
42
  var extractText = function extractText() {
42
43
  var content = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
43
44
  return content.map(function (item) {
@@ -366,11 +367,10 @@ var ChatInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
366
367
  content: t('chatInput.deepThinkTip')
367
368
  }, /*#__PURE__*/React.createElement("div", {
368
369
  className: styles.deepthink
369
- }, /*#__PURE__*/React.createElement("img", {
370
- width: 14,
371
- src: deepThinkActive,
372
- className: styles.imgs,
373
- alt: ""
370
+ }, /*#__PURE__*/React.createElement(IconFontCom, {
371
+ type: "icon-moxing",
372
+ size: 14,
373
+ color: "var(--theme-primary, #4086ff)"
374
374
  }), /*#__PURE__*/React.createElement("span", null, t('chatInput.deepThinkModeAuto'))));
375
375
  }, []);
376
376
  var stopSSe = function stopSSe() {
@@ -12,7 +12,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
12
12
  */
13
13
  import React from 'react';
14
14
  import Icon from '@douyinfe/semi-icons';
15
- var scriptUrl = '//at.alicdn.com/t/c/font_3429456_0fjwg76h4xco.js';
15
+ var scriptUrl = '//at.alicdn.com/t/c/font_3429456_b3mp8kjepwb.js';
16
16
 
17
17
  // Load iconfont script
18
18
  if (typeof document !== 'undefined' && scriptUrl) {
@@ -23,7 +23,7 @@ import AiLoading from "../ai-loading";
23
23
  var Empty = function Empty() {
24
24
  return /*#__PURE__*/React.createElement("div", {
25
25
  style: {
26
- marginTop: '180px',
26
+ marginTop: '30px',
27
27
  textAlign: 'center'
28
28
  }
29
29
  }, "\u6682\u65E0\u6570\u636E");
@@ -2,34 +2,28 @@ var enUS = {
2
2
  'common.serviceError': 'Service unavailable',
3
3
  'common.workflowRunningOnOtherDevice': 'The current workflow is running on another device. Please wait a moment, then refresh and try again.',
4
4
  'common.contentTooLarge': 'The content is too large. Please simplify it and start a new conversation.',
5
- // Sidebar
6
5
  'sidebar.knowledgeTrace': 'Sources',
7
6
  'sidebar.fileList': 'All',
8
7
  'sidebar.reasoningSearch': 'Search Sources',
9
8
  'sidebar.searchCourseList': 'Search Results',
10
- // KnowledgeTraceContent
11
9
  'knowledgeTrace.type.document': 'Document',
12
10
  'knowledgeTrace.type.video': 'Video',
13
- 'knowledgeTrace.type.course': 'Course',
14
- // ReasoningSearch
11
+ 'knowledgeTrace.type.course': 'Courses',
15
12
  'reasoningSearch.summary': 'Search Results',
16
- // ChatInput
17
13
  'chatInput.maxLength': 'Maximum 10000 characters',
18
14
  'chatInput.uploadLimitOne': 'Upload limit is one file',
19
15
  'chatInput.flowUnsupported': 'This button is not supported in the current flow. Please wait for the current flow to finish or follow the instructions on the chat card.',
20
16
  'chatInput.uploadFile': 'Upload File',
21
- 'chatInput.newConversation': 'New Chat',
17
+ 'chatInput.newConversation': 'New conversation',
22
18
  'chatInput.deepThinkTip': 'System intelligently switches thinking mode',
23
19
  'chatInput.deepThinkModeAuto': 'Deep Think: Auto',
24
20
  'chatInput.fetchingVoice': 'Fetching voice content...',
25
21
  'chatInput.voiceCallUnsupported': 'Voice call is not supported in the current flow',
26
22
  'chatInput.micPermissionRequired': 'Microphone access required',
27
- // AnswerItem
28
23
  'answer.taskCompleted': 'Task completed!',
29
24
  'answer.stopped': 'Stopped',
30
25
  'answer.courseRecommend': 'Related Courses',
31
26
  'answer.allCourses': 'All Courses',
32
- // Trace Lists
33
27
  'trace.jumpUnsupported': 'Source jump is not supported on this platform',
34
28
  'trace.video.coverAlt': 'Video cover',
35
29
  'trace.video.playAlt': 'Play button',
@@ -44,14 +38,12 @@ var enUS = {
44
38
  'trace.document.total': '{{count}} documents in this conversation',
45
39
  'trace.iconAlt': 'Knowledge source icon',
46
40
  'trace.countByType': '{{count}} {{type}}',
47
- // File Card
48
41
  'file.totalInConversation': '{{count}} documents in this conversation',
49
42
  'file.download': 'Download',
50
43
  'file.previewTitle': 'Document Preview',
51
44
  'file.previewBusy': 'Sorry, service is busy',
52
45
  'file.previewRetryHint': 'Please click retry to refresh preview, or download to view',
53
46
  'file.viewAll': 'All',
54
- // Quote
55
47
  'quote.name': 'Name',
56
48
  'quote.currentVideo': 'Current Video',
57
49
  'quote.currentCourseVideo': 'Current Course Video',
@@ -61,13 +53,11 @@ var enUS = {
61
53
  'quote.imageAlt': 'Cited resource image',
62
54
  'quote.durationMinutes': 'Duration {{minutes}} min',
63
55
  'quote.empty': 'No resources cited',
64
- // Reasoning
65
56
  'reasoning.deepThinking': 'Deep Thinking',
66
57
  'reasoning.startAnalysis': 'Start Analysis',
67
58
  'reasoning.status.thinking': 'Thinking',
68
59
  'reasoning.status.completed': 'Thinking Completed',
69
60
  'reasoning.status.stopped': 'Thinking Stopped',
70
- // Course
71
61
  'course.jumpUnsupported': 'Jumping to view course is not supported on this platform',
72
62
  'course.noValidCourse': 'No valid course to view',
73
63
  'course.noRights': 'No Access Rights',
@@ -77,7 +67,6 @@ var enUS = {
77
67
  'course.totalInConversation': '{{count}} courses in this conversation',
78
68
  'course.viewCourse': 'View Course',
79
69
  'course.coverAlt': 'Course Cover',
80
- // Common
81
70
  'common.search': 'Search',
82
71
  'common.download': 'Download',
83
72
  'common.loading': 'Loading...',
@@ -89,10 +78,8 @@ var enUS = {
89
78
  'common.retry': 'Retry',
90
79
  'common.gotIt': 'Got it',
91
80
  'common.scoreUnit': 'Points',
92
- 'common.networkUnavailable': 'Network unavailable',
93
- // AskCard
81
+ 'common.networkUnavailable': 'Network connection error',
94
82
  'askCard.fileUpload': 'File Upload',
95
- // Upload
96
83
  'upload.readFailed': 'File read failed',
97
84
  'upload.networkRetry': 'Network error, waiting to retry',
98
85
  'upload.failedMaxRetry': 'Upload failed, max retries reached',
@@ -113,7 +100,6 @@ var enUS = {
113
100
  'upload.parseFailed': 'File parse failed',
114
101
  'upload.parseFailedMaxRetry': 'File parse failed, max retries reached',
115
102
  'upload.successWithName': '{{name}} uploaded successfully',
116
- // History
117
103
  'history.deleteModal.title': 'Delete Conversation Permanently',
118
104
  'history.deleteModal.content': 'This conversation record will be permanently deleted and cannot be recovered or undone. Are you sure?',
119
105
  'history.deleteSuccess': 'Deleted successfully',
@@ -121,10 +107,8 @@ var enUS = {
121
107
  'history.noMore': 'No more records',
122
108
  'history.empty': 'No recent conversations',
123
109
  'history.fetchFailed': 'Failed to fetch history',
124
- // Slider
125
- 'slider.newConversation': 'New Chat',
110
+ 'slider.newConversation': 'New conversation',
126
111
  'slider.recentConversations': 'Recent Chats',
127
- // Voice
128
112
  'voice.recording': 'Listening',
129
113
  'voice.countdownPrefix': '(Countdown',
130
114
  'voice.countdownSuffix': 's)',
@@ -142,7 +126,6 @@ var enUS = {
142
126
  'voice.transcribeFailed': 'Transcription failed, please retry',
143
127
  'voice.stopRecordingFirst': 'Please stop recording first',
144
128
  'voice.playFailed': 'Voice playback failed',
145
- // Chat API
146
129
  'chatApi.conversationIdMissing': 'Conversation ID missing',
147
130
  'chatApi.retryFailed': 'Retry failed',
148
131
  'chatApi.aiResponding': 'AI is responding, please wait',
@@ -153,7 +136,6 @@ var enUS = {
153
136
  'chatApi.deleteSuccess': 'Conversation deleted successfully',
154
137
  'chatApi.deleteFailed': 'Failed to delete conversation',
155
138
  'chatApi.noRequestToCancel': 'No request to cancel',
156
- // Message Action
157
139
  'messageAction.copy': 'Copy',
158
140
  'messageAction.likeDone': 'Liked',
159
141
  'messageAction.like': 'Like',
@@ -167,21 +149,16 @@ var enUS = {
167
149
  'action.likeCancel': 'Like canceled',
168
150
  'action.dislikeCancel': 'Dislike canceled',
169
151
  'action.failed': 'Operation failed',
170
- // Conversation Delete
171
152
  'conversationDelete.title': 'Are you sure you want to delete this conversation?',
172
153
  'conversationDelete.content': 'This action is irreversible',
173
- // File Validation
174
154
  'fileValidation.uploadFailed': 'File upload failed, please retry',
175
155
  'fileValidation.parseFailed': 'File parse failed, please retry',
176
156
  'fileValidation.uploading': 'File uploading, please wait',
177
157
  'fileValidation.parsing': 'File parsing, please wait',
178
158
  'fileValidation.retrying': 'File processing retry, please wait',
179
- // Polling
180
159
  'polling.timeoutStopped': 'Polling timeout exceeded, stopped automatically',
181
- // Common Errors
182
160
  'common.requestTimeout': 'Request timeout',
183
161
  'common.searchCourseFailed': 'Failed to search related courses',
184
- // Excel
185
162
  'excel.steps.start': 'Start Core Analysis Module',
186
163
  'excel.steps.parse': 'Parse Key Elements',
187
164
  'excel.steps.build': 'Build Multi-scenario Solutions',
@@ -195,8 +172,7 @@ var enUS = {
195
172
  'excel.retry': 'Retry',
196
173
  'excel.defaultFileName': 'Download',
197
174
  'excel.download': 'Download',
198
- // AI Chat Dialogue
199
- 'aiDialogue.newConversation': 'New Chat',
175
+ 'aiDialogue.newConversation': 'New conversation',
200
176
  'aiDialogue.mutedThinking': 'You are muted (Thinking)',
201
177
  'aiDialogue.muted': 'You are muted',
202
178
  'aiDialogue.connecting': 'Connecting',
@@ -207,7 +183,7 @@ var enUS = {
207
183
  'aiDialogue.thinking': 'Thinking',
208
184
  'aiDialogue.micPermissionRequired': 'Microphone access required',
209
185
  'aiDialogue.micPermissionDenied': 'Microphone permission denied',
210
- 'aiDialogue.networkError': 'Network unavailable',
186
+ 'aiDialogue.networkError': 'Network connection error',
211
187
  'aiDialogue.reloadConfirm': 'Reloading will end the current voice call. Continue?',
212
188
  'aiDialogue.closeCaptions': 'Close Captions',
213
189
  'aiDialogue.openCaptions': 'Open Captions',
@@ -217,12 +193,10 @@ var enUS = {
217
193
  'aiDialogue.openMic': 'Open Mic',
218
194
  'aiDialogue.hangUp': 'Hang Up',
219
195
  'aiDialogue.unsupportedCall': 'Call display not supported in subsequent flow. You can hang up and continue.',
220
- // Work Flow
221
196
  'workflow.querying': 'Querying available workflows...',
222
197
  'workflow.terminated': 'Terminated',
223
198
  'workflow.calling': 'Calling {{name}}...',
224
199
  'workflow.defaultName': 'Workflow',
225
- // Voice Stream Errors
226
200
  'voice.error.connectFailed': 'Connection failed',
227
201
  'voice.error.sendStartFailed': 'Failed to send start: {{message}}',
228
202
  'voice.error.micPermissionDenied': 'Microphone permission denied: {{message}}',
@@ -2,18 +2,14 @@ var zhCN = {
2
2
  'common.serviceError': '服务异常',
3
3
  'common.workflowRunningOnOtherDevice': '当前工作流正在其它设备运行中,请稍作等待后刷新页面重试',
4
4
  'common.contentTooLarge': '内容过大,请精简后开启新对话',
5
- // Sidebar
6
5
  'sidebar.knowledgeTrace': '引用来源',
7
6
  'sidebar.fileList': '全部',
8
7
  'sidebar.reasoningSearch': '搜索来源',
9
8
  'sidebar.searchCourseList': '搜索结果',
10
- // KnowledgeTraceContent
11
9
  'knowledgeTrace.type.document': '文档',
12
10
  'knowledgeTrace.type.video': '视频',
13
11
  'knowledgeTrace.type.course': '课程',
14
- // ReasoningSearch
15
12
  'reasoningSearch.summary': '搜索结果',
16
- // ChatInput
17
13
  'chatInput.maxLength': '最多输入10000个字符',
18
14
  'chatInput.uploadLimitOne': '最多上传一个文件哦',
19
15
  'chatInput.flowUnsupported': '当前流程不支持该按钮的使用,请等待正在进行的流程结束或按对话卡片指示继续流程',
@@ -24,12 +20,10 @@ var zhCN = {
24
20
  'chatInput.fetchingVoice': '正在获取语音内容...',
25
21
  'chatInput.voiceCallUnsupported': '当前流程不支持语音通话',
26
22
  'chatInput.micPermissionRequired': '需要麦克风访问权限',
27
- // AnswerItem
28
23
  'answer.taskCompleted': '本次任务已完成!',
29
24
  'answer.stopped': '已停止',
30
25
  'answer.courseRecommend': '相关课程推荐',
31
26
  'answer.allCourses': '全部课程',
32
- // Trace Lists
33
27
  'trace.jumpUnsupported': '当前平台不支持溯源跳转',
34
28
  'trace.video.coverAlt': '视频封面图片',
35
29
  'trace.video.playAlt': '播放按钮图片',
@@ -44,14 +38,12 @@ var zhCN = {
44
38
  'trace.document.total': '本对话共{{count}}个文档',
45
39
  'trace.iconAlt': '知识库溯源图标',
46
40
  'trace.countByType': '{{count}}个{{type}}',
47
- // File Card
48
41
  'file.totalInConversation': '本对话共{{count}}个文档',
49
42
  'file.download': '下载',
50
43
  'file.previewTitle': '文档预览',
51
44
  'file.previewBusy': '抱歉,当前服务繁忙',
52
45
  'file.previewRetryHint': '请点击重试刷新预览,或直接下载查看',
53
46
  'file.viewAll': '全部',
54
- // Quote
55
47
  'quote.name': '名称',
56
48
  'quote.currentVideo': '当前视频',
57
49
  'quote.currentCourseVideo': '本课程视频',
@@ -61,13 +53,11 @@ var zhCN = {
61
53
  'quote.imageAlt': '资料引用图片',
62
54
  'quote.durationMinutes': '时长{{minutes}}分钟',
63
55
  'quote.empty': '暂无数据',
64
- // Reasoning
65
56
  'reasoning.deepThinking': '进行深度思考',
66
57
  'reasoning.startAnalysis': '开始分析问题',
67
58
  'reasoning.status.thinking': '正在思考',
68
59
  'reasoning.status.completed': '思考完成',
69
60
  'reasoning.status.stopped': '思考已停止',
70
- // Course
71
61
  'course.jumpUnsupported': '当前平台暂不支持跳转查看课程',
72
62
  'course.noValidCourse': '暂无有效的课程查看',
73
63
  'course.noRights': '暂无权益',
@@ -77,7 +67,6 @@ var zhCN = {
77
67
  'course.totalInConversation': '本对话共{{count}}个课程',
78
68
  'course.viewCourse': '查看课程',
79
69
  'course.coverAlt': '课程封面',
80
- // Common
81
70
  'common.search': '搜索',
82
71
  'common.download': '下载',
83
72
  'common.loading': '加载中...',
@@ -90,9 +79,7 @@ var zhCN = {
90
79
  'common.gotIt': '我知道了',
91
80
  'common.scoreUnit': '分',
92
81
  'common.networkUnavailable': '无法连接到网络',
93
- // AskCard
94
82
  'askCard.fileUpload': '文件上传',
95
- // Upload
96
83
  'upload.readFailed': '文件读取失败',
97
84
  'upload.networkRetry': '网络异常,等待恢复后重试',
98
85
  'upload.failedMaxRetry': '文件上传失败,已达到最大重试次数',
@@ -113,7 +100,6 @@ var zhCN = {
113
100
  'upload.parseFailed': '文件解析失败',
114
101
  'upload.parseFailedMaxRetry': '文件解析失败,已达到最大重试次数',
115
102
  'upload.successWithName': '{{name}} 上传成功',
116
- // History
117
103
  'history.deleteModal.title': '永久删除对话',
118
104
  'history.deleteModal.content': '本条会话记录将被永久删除,不可恢复及撤销。确定要删除吗?',
119
105
  'history.deleteSuccess': '删除成功',
@@ -121,10 +107,8 @@ var zhCN = {
121
107
  'history.noMore': '没有更多记录了',
122
108
  'history.empty': '暂无最近对话',
123
109
  'history.fetchFailed': '获取历史记录失败',
124
- // Slider
125
110
  'slider.newConversation': '新对话',
126
111
  'slider.recentConversations': '最近对话',
127
- // Voice
128
112
  'voice.recording': '语音输入中',
129
113
  'voice.countdownPrefix': '(倒计时',
130
114
  'voice.countdownSuffix': '秒)',
@@ -142,7 +126,6 @@ var zhCN = {
142
126
  'voice.transcribeFailed': '转写失败,请重试',
143
127
  'voice.stopRecordingFirst': '请先停止录音',
144
128
  'voice.playFailed': '语音播放失败',
145
- // Chat API
146
129
  'chatApi.conversationIdMissing': '会话ID不存在',
147
130
  'chatApi.retryFailed': '重试失败',
148
131
  'chatApi.aiResponding': 'AI正在输出中,请稍后',
@@ -153,7 +136,6 @@ var zhCN = {
153
136
  'chatApi.deleteSuccess': '删除会话成功',
154
137
  'chatApi.deleteFailed': '删除会话失败',
155
138
  'chatApi.noRequestToCancel': '没有可取消的请求',
156
- // Message Action
157
139
  'messageAction.copy': '复制',
158
140
  'messageAction.likeDone': '已点赞',
159
141
  'messageAction.like': '点赞',
@@ -167,21 +149,16 @@ var zhCN = {
167
149
  'action.likeCancel': '取消点赞',
168
150
  'action.dislikeCancel': '取消点踩',
169
151
  'action.failed': '操作失败',
170
- // Conversation Delete
171
152
  'conversationDelete.title': '确定是否要删除会话?',
172
153
  'conversationDelete.content': '此操作将不可逆',
173
- // File Validation
174
154
  'fileValidation.uploadFailed': '文件上传失败,请重试',
175
155
  'fileValidation.parseFailed': '文件解析失败,请重试',
176
156
  'fileValidation.uploading': '文件正在上传中,请稍后',
177
157
  'fileValidation.parsing': '文件正在解析中,请稍后',
178
158
  'fileValidation.retrying': '文件正在重试处理中,请稍后',
179
- // Polling
180
159
  'polling.timeoutStopped': '轮询已超过最大时长,自动终止',
181
- // Common Errors
182
160
  'common.requestTimeout': '请求超时',
183
161
  'common.searchCourseFailed': '搜索相关课程失败',
184
- // Excel
185
162
  'excel.steps.start': '启动核心分析模块',
186
163
  'excel.steps.parse': '解析关键要素',
187
164
  'excel.steps.build': '构建多场景解法',
@@ -195,7 +172,6 @@ var zhCN = {
195
172
  'excel.retry': '重试',
196
173
  'excel.defaultFileName': '文件下载',
197
174
  'excel.download': '下载',
198
- // AI Chat Dialogue
199
175
  'aiDialogue.newConversation': '新对话',
200
176
  'aiDialogue.mutedThinking': '你已静音(正在思考中)',
201
177
  'aiDialogue.muted': '你已静音',
@@ -217,12 +193,10 @@ var zhCN = {
217
193
  'aiDialogue.openMic': '打开麦克风',
218
194
  'aiDialogue.hangUp': '挂断电话',
219
195
  'aiDialogue.unsupportedCall': '后续流程暂不支持通话展示,可挂断后继续',
220
- // Work Flow
221
196
  'workflow.querying': '正在查询可用工作流...',
222
197
  'workflow.terminated': '运行终止',
223
198
  'workflow.calling': '正在调用 {{name}}...',
224
199
  'workflow.defaultName': '工作流',
225
- // Voice Stream Errors
226
200
  'voice.error.connectFailed': '连接失败',
227
201
  'voice.error.sendStartFailed': '发送start失败: {{message}}',
228
202
  'voice.error.micPermissionDenied': '麦克风权限被拒: {{message}}',