@fe-free/ai 4.1.33 → 4.1.35
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/CHANGELOG.md +18 -0
- package/package.json +4 -4
- package/src/index.ts +1 -1
- package/src/markdown/knowledge_ref.tsx +2 -3
- package/src/messages/message_think.tsx +6 -1
- package/src/style.scss +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @fe-free/ai
|
|
2
2
|
|
|
3
|
+
## 4.1.35
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: ai
|
|
8
|
+
- @fe-free/core@4.1.35
|
|
9
|
+
- @fe-free/icons@4.1.35
|
|
10
|
+
- @fe-free/tool@4.1.35
|
|
11
|
+
|
|
12
|
+
## 4.1.34
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- feat: ai
|
|
17
|
+
- @fe-free/core@4.1.34
|
|
18
|
+
- @fe-free/icons@4.1.34
|
|
19
|
+
- @fe-free/tool@4.1.34
|
|
20
|
+
|
|
3
21
|
## 4.1.33
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fe-free/ai",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.35",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"author": "",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"lodash-es": "^4.17.21",
|
|
20
20
|
"uuid": "^13.0.0",
|
|
21
21
|
"zustand": "^4.5.7",
|
|
22
|
-
"@fe-free/core": "4.1.
|
|
22
|
+
"@fe-free/core": "4.1.35"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"antd": "^5.27.1",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"i18next-icu": "^2.4.1",
|
|
30
30
|
"react": "^19.2.0",
|
|
31
31
|
"react-i18next": "^16.4.0",
|
|
32
|
-
"@fe-free/icons": "4.1.
|
|
33
|
-
"@fe-free/tool": "4.1.
|
|
32
|
+
"@fe-free/icons": "4.1.35",
|
|
33
|
+
"@fe-free/tool": "4.1.35"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"test": "echo \"Error: no test specified\" && exit 1",
|
package/src/index.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { MSender } from './m_sender';
|
|
|
7
7
|
export type { MSenderProps, MSenderRef } from './m_sender';
|
|
8
8
|
export { CustomMarkdown, Markdown } from './markdown';
|
|
9
9
|
export type { CustomMarkdownProps, MarkdownProps } from './markdown';
|
|
10
|
-
export { MessageActions, MessageThink, Messages } from './messages';
|
|
10
|
+
export { MessageActions, MessageThink, MessageThinkOfDeepSeek, Messages } from './messages';
|
|
11
11
|
export type { MessageThinkProps, MessagesProps } from './messages';
|
|
12
12
|
export { Sender } from './sender';
|
|
13
13
|
export type { SenderProps, SenderRef } from './sender';
|
|
@@ -20,7 +20,7 @@ function KnowledgeRefBlock(props: any) {
|
|
|
20
20
|
<span
|
|
21
21
|
data-id={id}
|
|
22
22
|
onClick={handleClick}
|
|
23
|
-
className="
|
|
23
|
+
className="mx-1 inline-flex h-[15px] min-w-[15px] cursor-pointer items-center justify-center rounded-full border border-primary text-center text-[10px] text-primary"
|
|
24
24
|
>
|
|
25
25
|
{index + 1}
|
|
26
26
|
</span>
|
|
@@ -28,7 +28,7 @@ function KnowledgeRefBlock(props: any) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
return (
|
|
31
|
-
<span className="
|
|
31
|
+
<span className="cursor-pointer text-primary" onClick={handleClick}>
|
|
32
32
|
来源>>
|
|
33
33
|
</span>
|
|
34
34
|
);
|
|
@@ -44,7 +44,6 @@ function processWithKnowledgeRef(text: string, knowledgeRefs?: { id: string }[])
|
|
|
44
44
|
return `<knowledge-ref data-id="${id}">${id}</knowledge-ref>`;
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
console.log('newText', newText);
|
|
48
47
|
if (count > 0 && knowledgeRefs && knowledgeRefs.length > 0) {
|
|
49
48
|
newText = `${newText}\n\n<knowledge-ref>来源>></knowledge-ref>`;
|
|
50
49
|
}
|
|
@@ -57,7 +57,12 @@ function MessageThink({
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function MessageThinkOfDeepSeek(props: MessageThinkProps) {
|
|
60
|
-
return
|
|
60
|
+
return (
|
|
61
|
+
<MessageThink
|
|
62
|
+
{...props}
|
|
63
|
+
className={classNames('fea-message-think-deep-seek', props.className)}
|
|
64
|
+
/>
|
|
65
|
+
);
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
export { MessageThink, MessageThinkOfDeepSeek };
|
package/src/style.scss
CHANGED
|
@@ -31,25 +31,6 @@
|
|
|
31
31
|
padding: 10px;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
.fea-markdown-body-block-knowledge-ref[data-id] {
|
|
36
|
-
height: 16px;
|
|
37
|
-
min-width: 16px;
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
display: inline-flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
border-radius: 999px;
|
|
43
|
-
border: 1px solid #0374e9;
|
|
44
|
-
color: #0374e9;
|
|
45
|
-
font-size: 12px;
|
|
46
|
-
padding: 0 4px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.fea-markdown-body-block-knowledge-ref-source {
|
|
50
|
-
color: #0374e9;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
}
|
|
53
34
|
}
|
|
54
35
|
|
|
55
36
|
.fea-sender {
|