@myun/gimi-chat 0.9.63 → 0.9.65
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.
- package/dist/apis/useApi.d.ts +0 -6
- package/dist/apis/useApi.js +1 -45
- package/dist/components/ai-chat-dialogue/index copy.js +1 -1
- package/dist/components/ai-chat-dialogue/index.js +2 -4
- package/dist/components/answer-item/index.d.ts +1 -2
- package/dist/components/answer-item/index.js +8 -179
- package/dist/components/answer-item/index.module.css +0 -35
- package/dist/components/ask-card/index.d.ts +1 -1
- package/dist/components/chat-input/extension/index.d.ts +0 -1
- package/dist/components/chat-input/extension/index.js +1 -2
- package/dist/components/chat-input/index.js +24 -145
- package/dist/components/file-card/index.js +1 -2
- package/dist/components/file-card/index.module.css +0 -1
- package/dist/components/knowledge-trace/tryWatch.js +1 -1
- package/dist/components/message-list/index.js +3 -15
- package/dist/components/message-list/index.module.css +0 -3
- package/dist/components/templates/CommonChat.js +1 -3
- package/dist/hooks/useChatActions.d.ts +1 -2
- package/dist/hooks/useChatActions.js +12 -52
- package/dist/hooks/useChatStream.d.ts +1 -6
- package/dist/hooks/useChatStream.js +5 -97
- package/dist/hooks/useCommonChatAPI.d.ts +1 -1
- package/dist/hooks/useCommonChatAPI.js +58 -212
- package/dist/i18n/locales/en-US.d.ts +0 -6
- package/dist/i18n/locales/en-US.js +1 -7
- package/dist/i18n/locales/zh-CN.d.ts +0 -6
- package/dist/i18n/locales/zh-CN.js +1 -7
- package/dist/interfaces/chatMessage.d.ts +0 -40
- package/dist/umd/index.min.js +1 -1
- package/dist/utils/tools.d.ts +0 -7
- package/dist/utils/tools.js +1 -38
- package/package.json +2 -4
- package/dist/components/answer-item/component/artifacts/index.d.ts +0 -13
- package/dist/components/answer-item/component/artifacts/index.js +0 -52
- package/dist/components/answer-item/component/artifacts/index.module.css +0 -24
- package/dist/components/answer-item/component/tool-list/index.d.ts +0 -7
- package/dist/components/answer-item/component/tool-list/index.js +0 -117
- package/dist/components/answer-item/component/tool-list/index.module.css +0 -97
- package/dist/components/chat-input/extension/skill/MentionList.d.ts +0 -31
- package/dist/components/chat-input/extension/skill/MentionList.js +0 -199
- package/dist/components/chat-input/extension/skill/ReferSlot.d.ts +0 -3
- package/dist/components/chat-input/extension/skill/ReferSlot.js +0 -100
- package/dist/components/chat-input/extension/skill/data.d.ts +0 -10
- package/dist/components/chat-input/extension/skill/data.js +0 -49
- package/dist/components/chat-input/extension/skill/index.d.ts +0 -7
- package/dist/components/chat-input/extension/skill/index.js +0 -5
- package/dist/components/chat-input/extension/skill/index.less +0 -117
- package/dist/components/chat-input/extension/skill/suggestion.d.ts +0 -16
- package/dist/components/chat-input/extension/skill/suggestion.js +0 -206
- package/dist/components/message-list/skill-tag/index.d.ts +0 -5
- package/dist/components/message-list/skill-tag/index.js +0 -23
- package/dist/components/message-list/skill-tag/index.module.css +0 -21
|
@@ -99,8 +99,6 @@ var zhCN = {
|
|
|
99
99
|
'common.dataLoading': '数据加载中~',
|
|
100
100
|
'common.pleaseWait': '请稍等...',
|
|
101
101
|
'common.empty': '暂无内容',
|
|
102
|
-
'common.noSkill': '暂无技能',
|
|
103
|
-
'common.skillExceedLimit': '添加该技能后内容将超过10000字,请精简输入内容后再选择',
|
|
104
102
|
'common.delete': '删除',
|
|
105
103
|
'common.cancel': '取消',
|
|
106
104
|
'common.retry': '重试',
|
|
@@ -169,9 +167,6 @@ var zhCN = {
|
|
|
169
167
|
'chatApi.deleteSuccess': '删除会话成功',
|
|
170
168
|
'chatApi.deleteFailed': '删除会话失败',
|
|
171
169
|
'chatApi.noRequestToCancel': '没有可取消的请求',
|
|
172
|
-
'chatApi.completed': '已完成',
|
|
173
|
-
'chatApi.organizingAnswer': '正在整理答案',
|
|
174
|
-
'chatApi.waitingForConfirmation': '等待人工确认',
|
|
175
170
|
'messageAction.copy': '复制',
|
|
176
171
|
'messageAction.likeDone': '已点赞',
|
|
177
172
|
'messageAction.like': '点赞',
|
|
@@ -262,7 +257,6 @@ var zhCN = {
|
|
|
262
257
|
'informationDetail.taxPreferenceLabel': '是否税费优惠及类型:',
|
|
263
258
|
'informationDetail.applicableCountry': '适用国别:',
|
|
264
259
|
'informationDetail.signDate': '签署日期:',
|
|
265
|
-
'informationDetail.executeDate': '执行日期:'
|
|
266
|
-
'common.selectSkill': '选择技能'
|
|
260
|
+
'informationDetail.executeDate': '执行日期:'
|
|
267
261
|
};
|
|
268
262
|
export default zhCN;
|
|
@@ -1,33 +1,10 @@
|
|
|
1
1
|
import { MCPItem } from "../types/answer";
|
|
2
2
|
import { FileItem } from "../types/file";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
export interface ToolItem {
|
|
6
|
-
/** 工具类型 */
|
|
7
|
-
moduleType?: string;
|
|
8
|
-
/** 工具名称 */
|
|
9
|
-
toolName?: string;
|
|
10
|
-
/** 工具调用状态 */
|
|
11
|
-
status?: string;
|
|
12
|
-
/** 工具调用ID */
|
|
13
|
-
id?: string;
|
|
14
|
-
/** 工具调用内容 */
|
|
15
|
-
content?: string;
|
|
16
|
-
/** 工具调用数据 */
|
|
17
|
-
data?: any;
|
|
18
|
-
/** 确认状态
|
|
19
|
-
* PENDING:等待用户处理
|
|
20
|
-
* CONFIRMED:全部同意
|
|
21
|
-
* REJECTED:全部拒绝
|
|
22
|
-
* PARTIAL:部分同意;
|
|
23
|
-
*/
|
|
24
|
-
confirmStatus?: "PENDING" | "CONFIRMED" | "REJECTED" | "PARTIAL";
|
|
25
|
-
}
|
|
26
4
|
/**
|
|
27
5
|
* 聊天消息主接口
|
|
28
6
|
*/
|
|
29
7
|
export interface IChatMessageItem {
|
|
30
|
-
pendingUserConfirm: any;
|
|
31
8
|
/** 代理ID(可选,无值时为 null) */
|
|
32
9
|
agentId?: number | null;
|
|
33
10
|
/** 机器人ID(可选,无值时为 null) */
|
|
@@ -124,23 +101,6 @@ export interface IChatMessageItem {
|
|
|
124
101
|
reasoningLoading?: boolean;
|
|
125
102
|
/** 消息是否加载中 */
|
|
126
103
|
msgLoading?: boolean;
|
|
127
|
-
/** 消息处理耗时(毫秒) */
|
|
128
|
-
durationMs?: number;
|
|
129
|
-
/** 总token数量 */
|
|
130
|
-
totalTokens?: number;
|
|
131
|
-
/** 工具调用列表 */
|
|
132
|
-
toolList?: ToolItem[] | null ;
|
|
133
|
-
/** 思考信息 */
|
|
134
|
-
thinkingInfo?: {
|
|
135
|
-
status?: string;
|
|
136
|
-
toolName?: string;
|
|
137
|
-
collapse?: boolean;
|
|
138
|
-
loaded?: boolean;
|
|
139
|
-
needInit?: boolean;
|
|
140
|
-
};
|
|
141
|
-
/** 资产列表 */
|
|
142
|
-
artifacts?: Artifact[] | null;
|
|
143
|
-
attachedEvents?: any[] | null;
|
|
144
104
|
}
|
|
145
105
|
|
|
146
106
|
interface ModuleInfo {
|