mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-02 12:48:30 +00:00
perf: queue link
This commit is contained in:
@@ -73,9 +73,6 @@ export async function pushDataToKb({
|
||||
const set = new Set();
|
||||
const filterData: DateItemType[] = [];
|
||||
|
||||
const time = Date.now();
|
||||
console.log('push data', data.length);
|
||||
|
||||
data.forEach((item) => {
|
||||
const text = item.q + item.a;
|
||||
|
||||
@@ -156,8 +153,6 @@ export async function pushDataToKb({
|
||||
|
||||
insertData.length > 0 && startQueue();
|
||||
|
||||
console.log('push data finish', Date.now() - time);
|
||||
|
||||
return {
|
||||
insertLen: insertData.length
|
||||
};
|
||||
|
@@ -38,9 +38,6 @@ const ModelList = ({ models, modelId }: { models: ModelListItemType[]; modelId:
|
||||
<Box className="textEllipsis" color={'myGray.1000'}>
|
||||
{item.name}
|
||||
</Box>
|
||||
<Box className="textEllipsis" color={'myGray.400'} fontSize={'sm'}>
|
||||
{item.systemPrompt || '这个 应用 没有设置提示词~'}
|
||||
</Box>
|
||||
</Box>
|
||||
</Flex>
|
||||
</Box>
|
||||
|
Reference in New Issue
Block a user