Browse Source

imprv comment

Shun Miyazawa 1 năm trước cách đây
mục cha
commit
a2964a1d84
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      apps/app/src/features/openai/server/services/openai.ts

+ 2 - 2
apps/app/src/features/openai/server/services/openai.ts

@@ -186,10 +186,10 @@ class OpenaiService implements IOpenaiService {
       // Create vector store file
       const vectorStore = await this.getOrCreateVectorStoreForPublicScope();
       const createVectorStoreFileBatchResponse = await this.client.createVectorStoreFileBatch(vectorStore.vectorStoreId, uploadedFileIds);
+      logger.debug('Create vector store file', createVectorStoreFileBatchResponse);
 
-      // Execute when the uploaded file is attached to VectorStore
+      // Set isAttachedToVectorStore: true when the uploaded file is attached to VectorStore
       await VectorStoreFileRelationModel.markAsAttachedToVectorStore(pageIds);
-      logger.debug('Create vector store file', createVectorStoreFileBatchResponse);
     }
     catch (err) {
       logger.error(err);