fix: Web code build fails on ARM machines #2554 (#2557)

### 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)
This commit is contained in:
balibabu 2024-09-24 15:27:26 +08:00 committed by GitHub
parent 7b3099b1a1
commit 832c90ac3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 28 deletions

View File

@ -30,7 +30,7 @@ export default defineConfig({
copy: ['src/conf.json'],
proxy: {
'/v1': {
target: 'http://127.0.0.1:9380/',
target: 'http://127.0.0.1:9456/',
changeOrigin: true,
ws: true,
logger: console,

View File

@ -435,7 +435,7 @@ The above is the content you need to summarize.`,
'To play the voice using voice conversion, please select TTS (speech conversion model) in the settings first.',
relatedQuestion: 'Related question',
answerTitle: 'R',
multiTurn: 'Multi-trun optimization',
multiTurn: 'Multi-turn optimization',
multiTurnTip:
'In multi-round conversations, the query to the knowledge base is optimized. The large model will be called to consume additional tokens.',
},

View File

@ -17,7 +17,6 @@ import {
} from '@ant-design/icons';
import { Button, Space, Tooltip } from 'antd';
import { useHandleDeleteFile } from '../hooks';
import styles from './index.less';
interface IProps {
record: IFile;
@ -74,11 +73,7 @@ const ActionCell = ({
<Space size={0}>
{isKnowledgeBase || (
<Tooltip title={t('addToKnowledge')}>
<Button
type="text"
className={styles.iconButton}
onClick={onShowConnectToKnowledgeModal}
>
<Button type="text" onClick={onShowConnectToKnowledgeModal}>
<LinkOutlined size={20} />
</Button>
</Tooltip>
@ -86,12 +81,7 @@ const ActionCell = ({
{isKnowledgeBase || (
<Tooltip title={t('rename', { keyPrefix: 'common' })}>
<Button
type="text"
disabled={beingUsed}
onClick={onShowRenameModal}
className={styles.iconButton}
>
<Button type="text" disabled={beingUsed} onClick={onShowRenameModal}>
<EditOutlined size={20} />
</Button>
</Tooltip>
@ -102,7 +92,6 @@ const ActionCell = ({
type="text"
disabled={beingUsed}
onClick={onShowMoveFileModal}
className={styles.iconButton}
>
<SvgIcon name={`move`} width={16}></SvgIcon>
</Button>
@ -110,24 +99,14 @@ const ActionCell = ({
)}
{isKnowledgeBase || (
<Tooltip title={t('delete', { keyPrefix: 'common' })}>
<Button
type="text"
disabled={beingUsed}
onClick={handleRemoveFile}
className={styles.iconButton}
>
<Button type="text" disabled={beingUsed} onClick={handleRemoveFile}>
<DeleteOutlined size={20} />
</Button>
</Tooltip>
)}
{record.type !== 'folder' && (
<Tooltip title={t('download', { keyPrefix: 'common' })}>
<Button
type="text"
disabled={beingUsed}
onClick={onDownloadDocument}
className={styles.iconButton}
>
<Button type="text" disabled={beingUsed} onClick={onDownloadDocument}>
<DownloadOutlined size={20} />
</Button>
</Tooltip>
@ -139,7 +118,7 @@ const ActionCell = ({
color="black"
>
<Tooltip title={t('preview')}>
<Button type="text" className={styles.iconButton}>
<Button type="text">
<EyeOutlined size={20} />
</Button>
</Tooltip>