balibabu
commited on
Commit
·
589b0da
1
Parent(s):
bdf4215
fix: Web code build fails on ARM machines #2554 (#2557)
Browse files### What problem does this PR solve?
fix: Web code build fails on ARM machines #2554
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
web/.umirc.ts
CHANGED
@@ -30,7 +30,7 @@ export default defineConfig({
|
|
30 |
copy: ['src/conf.json'],
|
31 |
proxy: {
|
32 |
'/v1': {
|
33 |
-
target: 'http://127.0.0.1:
|
34 |
changeOrigin: true,
|
35 |
ws: true,
|
36 |
logger: console,
|
|
|
30 |
copy: ['src/conf.json'],
|
31 |
proxy: {
|
32 |
'/v1': {
|
33 |
+
target: 'http://127.0.0.1:9456/',
|
34 |
changeOrigin: true,
|
35 |
ws: true,
|
36 |
logger: console,
|
web/src/locales/en.ts
CHANGED
@@ -435,7 +435,7 @@ The above is the content you need to summarize.`,
|
|
435 |
'To play the voice using voice conversion, please select TTS (speech conversion model) in the settings first.',
|
436 |
relatedQuestion: 'Related question',
|
437 |
answerTitle: 'R',
|
438 |
-
multiTurn: 'Multi-
|
439 |
multiTurnTip:
|
440 |
'In multi-round conversations, the query to the knowledge base is optimized. The large model will be called to consume additional tokens.',
|
441 |
},
|
|
|
435 |
'To play the voice using voice conversion, please select TTS (speech conversion model) in the settings first.',
|
436 |
relatedQuestion: 'Related question',
|
437 |
answerTitle: 'R',
|
438 |
+
multiTurn: 'Multi-turn optimization',
|
439 |
multiTurnTip:
|
440 |
'In multi-round conversations, the query to the knowledge base is optimized. The large model will be called to consume additional tokens.',
|
441 |
},
|
web/src/pages/add-knowledge/components/knowledge-chunk/components/chunk-creating-modal/index.less
DELETED
File without changes
|
web/src/pages/file-manager/action-cell/index.less
DELETED
File without changes
|
web/src/pages/file-manager/action-cell/index.tsx
CHANGED
@@ -17,7 +17,6 @@ import {
|
|
17 |
} from '@ant-design/icons';
|
18 |
import { Button, Space, Tooltip } from 'antd';
|
19 |
import { useHandleDeleteFile } from '../hooks';
|
20 |
-
import styles from './index.less';
|
21 |
|
22 |
interface IProps {
|
23 |
record: IFile;
|
@@ -74,11 +73,7 @@ const ActionCell = ({
|
|
74 |
<Space size={0}>
|
75 |
{isKnowledgeBase || (
|
76 |
<Tooltip title={t('addToKnowledge')}>
|
77 |
-
<Button
|
78 |
-
type="text"
|
79 |
-
className={styles.iconButton}
|
80 |
-
onClick={onShowConnectToKnowledgeModal}
|
81 |
-
>
|
82 |
<LinkOutlined size={20} />
|
83 |
</Button>
|
84 |
</Tooltip>
|
@@ -86,12 +81,7 @@ const ActionCell = ({
|
|
86 |
|
87 |
{isKnowledgeBase || (
|
88 |
<Tooltip title={t('rename', { keyPrefix: 'common' })}>
|
89 |
-
<Button
|
90 |
-
type="text"
|
91 |
-
disabled={beingUsed}
|
92 |
-
onClick={onShowRenameModal}
|
93 |
-
className={styles.iconButton}
|
94 |
-
>
|
95 |
<EditOutlined size={20} />
|
96 |
</Button>
|
97 |
</Tooltip>
|
@@ -102,7 +92,6 @@ const ActionCell = ({
|
|
102 |
type="text"
|
103 |
disabled={beingUsed}
|
104 |
onClick={onShowMoveFileModal}
|
105 |
-
className={styles.iconButton}
|
106 |
>
|
107 |
<SvgIcon name={`move`} width={16}></SvgIcon>
|
108 |
</Button>
|
@@ -110,24 +99,14 @@ const ActionCell = ({
|
|
110 |
)}
|
111 |
{isKnowledgeBase || (
|
112 |
<Tooltip title={t('delete', { keyPrefix: 'common' })}>
|
113 |
-
<Button
|
114 |
-
type="text"
|
115 |
-
disabled={beingUsed}
|
116 |
-
onClick={handleRemoveFile}
|
117 |
-
className={styles.iconButton}
|
118 |
-
>
|
119 |
<DeleteOutlined size={20} />
|
120 |
</Button>
|
121 |
</Tooltip>
|
122 |
)}
|
123 |
{record.type !== 'folder' && (
|
124 |
<Tooltip title={t('download', { keyPrefix: 'common' })}>
|
125 |
-
<Button
|
126 |
-
type="text"
|
127 |
-
disabled={beingUsed}
|
128 |
-
onClick={onDownloadDocument}
|
129 |
-
className={styles.iconButton}
|
130 |
-
>
|
131 |
<DownloadOutlined size={20} />
|
132 |
</Button>
|
133 |
</Tooltip>
|
@@ -139,7 +118,7 @@ const ActionCell = ({
|
|
139 |
color="black"
|
140 |
>
|
141 |
<Tooltip title={t('preview')}>
|
142 |
-
<Button type="text"
|
143 |
<EyeOutlined size={20} />
|
144 |
</Button>
|
145 |
</Tooltip>
|
|
|
17 |
} from '@ant-design/icons';
|
18 |
import { Button, Space, Tooltip } from 'antd';
|
19 |
import { useHandleDeleteFile } from '../hooks';
|
|
|
20 |
|
21 |
interface IProps {
|
22 |
record: IFile;
|
|
|
73 |
<Space size={0}>
|
74 |
{isKnowledgeBase || (
|
75 |
<Tooltip title={t('addToKnowledge')}>
|
76 |
+
<Button type="text" onClick={onShowConnectToKnowledgeModal}>
|
|
|
|
|
|
|
|
|
77 |
<LinkOutlined size={20} />
|
78 |
</Button>
|
79 |
</Tooltip>
|
|
|
81 |
|
82 |
{isKnowledgeBase || (
|
83 |
<Tooltip title={t('rename', { keyPrefix: 'common' })}>
|
84 |
+
<Button type="text" disabled={beingUsed} onClick={onShowRenameModal}>
|
|
|
|
|
|
|
|
|
|
|
85 |
<EditOutlined size={20} />
|
86 |
</Button>
|
87 |
</Tooltip>
|
|
|
92 |
type="text"
|
93 |
disabled={beingUsed}
|
94 |
onClick={onShowMoveFileModal}
|
|
|
95 |
>
|
96 |
<SvgIcon name={`move`} width={16}></SvgIcon>
|
97 |
</Button>
|
|
|
99 |
)}
|
100 |
{isKnowledgeBase || (
|
101 |
<Tooltip title={t('delete', { keyPrefix: 'common' })}>
|
102 |
+
<Button type="text" disabled={beingUsed} onClick={handleRemoveFile}>
|
|
|
|
|
|
|
|
|
|
|
103 |
<DeleteOutlined size={20} />
|
104 |
</Button>
|
105 |
</Tooltip>
|
106 |
)}
|
107 |
{record.type !== 'folder' && (
|
108 |
<Tooltip title={t('download', { keyPrefix: 'common' })}>
|
109 |
+
<Button type="text" disabled={beingUsed} onClick={onDownloadDocument}>
|
|
|
|
|
|
|
|
|
|
|
110 |
<DownloadOutlined size={20} />
|
111 |
</Button>
|
112 |
</Tooltip>
|
|
|
118 |
color="black"
|
119 |
>
|
120 |
<Tooltip title={t('preview')}>
|
121 |
+
<Button type="text">
|
122 |
<EyeOutlined size={20} />
|
123 |
</Button>
|
124 |
</Tooltip>
|