fix: 重复生成向量

This commit is contained in:
archer
2023-04-04 22:12:48 +08:00
parent a7c5d3cc05
commit b73829a25c
6 changed files with 10 additions and 13 deletions

View File

@@ -1,5 +1,3 @@
import { getOpenAIApi } from '@/service/utils/chat';
import { httpsAgent } from '@/service/utils/tools';
import { connectRedis } from '../redis';
import { VecModelDataIdx } from '@/constants/redis';
import { vectorToBuffer } from '@/utils/tools';
@@ -88,6 +86,7 @@ export async function generateVector(next = false): Promise<any> {
setTimeout(() => {
generateVector(true);
}, 60000);
return;
}
setTimeout(() => {