mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-21 11:43:56 +00:00
i18n perf (#3770)
* model config * feat: normalization embedding * perf: mark ui * perf: i18n * fix: rerank error tip
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
title: 'V4.9.0(进行中)'
|
|
||||||
description: 'FastGPT V4.9.0 更新说明'
|
|
||||||
icon: 'upgrade'
|
|
||||||
draft: false
|
|
||||||
toc: true
|
|
||||||
weight: 804
|
|
||||||
---
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 完整更新内容
|
|
||||||
|
|
||||||
1. 修复 - 简易模式,切换到其他非视觉模型时候,会强制关闭图片识别。
|
|
||||||
2. 修复 - o1,o3 模型,在测试时候字段映射未生效导致报错。
|
|
@@ -25,6 +25,9 @@ export function reRankRecall({
|
|||||||
if (!model) {
|
if (!model) {
|
||||||
return Promise.reject('no rerank model');
|
return Promise.reject('no rerank model');
|
||||||
}
|
}
|
||||||
|
if (documents.length === 0) {
|
||||||
|
return Promise.resolve([]);
|
||||||
|
}
|
||||||
|
|
||||||
const { baseUrl, authorization } = getAxiosConfig();
|
const { baseUrl, authorization } = getAxiosConfig();
|
||||||
|
|
||||||
|
@@ -635,7 +635,7 @@ export async function searchDatasetData(
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
return datasetDataReRank({
|
return await datasetDataReRank({
|
||||||
query: reRankQuery,
|
query: reRankQuery,
|
||||||
data: filterSameDataResults
|
data: filterSameDataResults
|
||||||
});
|
});
|
||||||
|
@@ -142,7 +142,7 @@ export const checkQuoteQAValue = (quoteQA?: SearchDataResponseItemType[]) => {
|
|||||||
if (quoteQA.length === 0) {
|
if (quoteQA.length === 0) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
if (quoteQA.some((item) => !item.q)) {
|
if (quoteQA.some((item) => typeof item !== 'object' || !item.q)) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
return quoteQA;
|
return quoteQA;
|
||||||
|
@@ -165,7 +165,7 @@
|
|||||||
"common.Not open": "Not Open",
|
"common.Not open": "Not Open",
|
||||||
"common.OK": "OK",
|
"common.OK": "OK",
|
||||||
"common.Open": "Open",
|
"common.Open": "Open",
|
||||||
"common.Operation": "Operation",
|
"Operation": "Operation",
|
||||||
"common.Other": "Other",
|
"common.Other": "Other",
|
||||||
"common.Output": "Output",
|
"common.Output": "Output",
|
||||||
"common.Params": "Parameters",
|
"common.Params": "Parameters",
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
"common.Remove": "Remove",
|
"common.Remove": "Remove",
|
||||||
"common.Rename": "Rename",
|
"common.Rename": "Rename",
|
||||||
"common.Request Error": "Request Error",
|
"common.Request Error": "Request Error",
|
||||||
"common.Require Input": "Required",
|
"Required_input": "Required",
|
||||||
"common.Reset": "Reset",
|
"common.Reset": "Reset",
|
||||||
"common.Restart": "Restart",
|
"common.Restart": "Restart",
|
||||||
"common.Role": "Permission",
|
"common.Role": "Permission",
|
||||||
|
@@ -169,7 +169,7 @@
|
|||||||
"common.Not open": "未开启",
|
"common.Not open": "未开启",
|
||||||
"common.OK": "好的",
|
"common.OK": "好的",
|
||||||
"common.Open": "打开",
|
"common.Open": "打开",
|
||||||
"common.Operation": "操作",
|
"Operation": "操作",
|
||||||
"common.Other": "其他",
|
"common.Other": "其他",
|
||||||
"common.Output": "输出",
|
"common.Output": "输出",
|
||||||
"common.Params": "参数",
|
"common.Params": "参数",
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
"common.Remove": "移除",
|
"common.Remove": "移除",
|
||||||
"common.Rename": "重命名",
|
"common.Rename": "重命名",
|
||||||
"common.Request Error": "请求异常",
|
"common.Request Error": "请求异常",
|
||||||
"common.Require Input": "必填",
|
"Required_input": "必填",
|
||||||
"common.Reset": "恢复默认",
|
"common.Reset": "恢复默认",
|
||||||
"common.Restart": "重新开始",
|
"common.Restart": "重新开始",
|
||||||
"common.Role": "权限",
|
"common.Role": "权限",
|
||||||
|
@@ -164,7 +164,7 @@
|
|||||||
"common.Not open": "未開啟",
|
"common.Not open": "未開啟",
|
||||||
"common.OK": "確定",
|
"common.OK": "確定",
|
||||||
"common.Open": "開啟",
|
"common.Open": "開啟",
|
||||||
"common.Operation": "操作",
|
"Operation": "操作",
|
||||||
"common.Other": "其他",
|
"common.Other": "其他",
|
||||||
"common.Output": "輸出",
|
"common.Output": "輸出",
|
||||||
"common.Params": "參數",
|
"common.Params": "參數",
|
||||||
@@ -178,7 +178,7 @@
|
|||||||
"common.Remove": "移除",
|
"common.Remove": "移除",
|
||||||
"common.Rename": "重新命名",
|
"common.Rename": "重新命名",
|
||||||
"common.Request Error": "請求錯誤",
|
"common.Request Error": "請求錯誤",
|
||||||
"common.Require Input": "必填",
|
"Required_input": "必填",
|
||||||
"common.Reset": "恢復預設",
|
"common.Reset": "恢復預設",
|
||||||
"common.Restart": "重新開始",
|
"common.Restart": "重新開始",
|
||||||
"common.Role": "權限",
|
"common.Role": "權限",
|
||||||
|
@@ -76,7 +76,7 @@ const FolderSlideCard = ({
|
|||||||
<MyDivider my={6} />
|
<MyDivider my={6} />
|
||||||
|
|
||||||
<Box>
|
<Box>
|
||||||
<FormLabel>{t('common:common.Operation')}</FormLabel>
|
<FormLabel>{t('common:Operation')}</FormLabel>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
variant={'transparentBase'}
|
variant={'transparentBase'}
|
||||||
|
@@ -204,8 +204,8 @@ const VariableEdit = ({
|
|||||||
<Thead>
|
<Thead>
|
||||||
<Tr>
|
<Tr>
|
||||||
<Th>{t('workflow:Variable_name')}</Th>
|
<Th>{t('workflow:Variable_name')}</Th>
|
||||||
<Th>{t('common:common.Require Input')}</Th>
|
<Th>{t('common:Required_input')}</Th>
|
||||||
<Th>{t('common:common.Operation')}</Th>
|
<Th>{t('common:Operation')}</Th>
|
||||||
</Tr>
|
</Tr>
|
||||||
</Thead>
|
</Thead>
|
||||||
<DndDrag<VariableItemType>
|
<DndDrag<VariableItemType>
|
||||||
|
@@ -76,10 +76,8 @@ const SelectMarkCollection = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Flex alignItems={'center'} h={'38px'}>
|
<Flex alignItems={'center'} h={'38px'}>
|
||||||
<Avatar src={item.avatar} w={['24px', '28px', '32px']}></Avatar>
|
<Avatar src={item.avatar} w={'2rem'} borderRadius={'sm'}></Avatar>
|
||||||
<Box ml={3} fontWeight={'bold'} fontSize={['md', 'lg']}>
|
<Box ml={3}>{item.name}</Box>
|
||||||
{item.name}
|
|
||||||
</Box>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
<Flex justifyContent={'flex-end'} alignItems={'center'} fontSize={'sm'}>
|
<Flex justifyContent={'flex-end'} alignItems={'center'} fontSize={'sm'}>
|
||||||
<MyIcon mr={1} name="kbTest" w={'12px'} />
|
<MyIcon mr={1} name="kbTest" w={'12px'} />
|
||||||
|
@@ -161,7 +161,7 @@ const NodeFormInput = ({ data, selected }: NodeProps<FlowNodeItemType>) => {
|
|||||||
<Tr>
|
<Tr>
|
||||||
<Th>{t('workflow:user_form_input_name')}</Th>
|
<Th>{t('workflow:user_form_input_name')}</Th>
|
||||||
<Th>{t('workflow:user_form_input_description')}</Th>
|
<Th>{t('workflow:user_form_input_description')}</Th>
|
||||||
<Th>{t('common:common.Require Input')}</Th>
|
<Th>{t('common:Required_input')}</Th>
|
||||||
<Th>{t('user:operations')}</Th>
|
<Th>{t('user:operations')}</Th>
|
||||||
</Tr>
|
</Tr>
|
||||||
</Thead>
|
</Thead>
|
||||||
|
@@ -70,7 +70,7 @@ const NodeToolParams = ({ data, selected }: NodeProps<FlowNodeItemType>) => {
|
|||||||
{t('workflow:tool_params.params_description')}
|
{t('workflow:tool_params.params_description')}
|
||||||
</Th>
|
</Th>
|
||||||
<Th p={0} px={4} bg={'myGray.50'} borderBottomRightRadius={'none !important'}>
|
<Th p={0} px={4} bg={'myGray.50'} borderBottomRightRadius={'none !important'}>
|
||||||
{t('common:common.Operation')}
|
{t('common:Operation')}
|
||||||
</Th>
|
</Th>
|
||||||
</Tr>
|
</Tr>
|
||||||
</Thead>
|
</Thead>
|
||||||
|
@@ -88,7 +88,7 @@ const EditFieldModal = ({
|
|||||||
<MyModal isOpen iconSrc="modal/edit" title={t('workflow:tool_field')} onClose={onClose}>
|
<MyModal isOpen iconSrc="modal/edit" title={t('workflow:tool_field')} onClose={onClose}>
|
||||||
<ModalBody>
|
<ModalBody>
|
||||||
<Flex alignItems={'center'} mb={5}>
|
<Flex alignItems={'center'} mb={5}>
|
||||||
<Box flex={'0 0 80px'}>{t('common:common.Require Input')}</Box>
|
<Box flex={'0 0 80px'}>{t('common:Required_input')}</Box>
|
||||||
<Switch {...register('required')} />
|
<Switch {...register('required')} />
|
||||||
</Flex>
|
</Flex>
|
||||||
<Flex alignItems={'center'} mb={5}>
|
<Flex alignItems={'center'} mb={5}>
|
||||||
|
Reference in New Issue
Block a user