jack 3 月之前
父节点
当前提交
b6d6561a69
共有 2 个文件被更改,包括 0 次插入9 次删除
  1. 0 5
      app/core/tools/file_search_tool.py
  2. 0 4
      app/services/file/impl/r2r_file.py

+ 0 - 5
app/core/tools/file_search_tool.py

@@ -8,11 +8,6 @@ from app.models.run import Run
 from app.services.file.file import FileService
 from app.services.file.file import FileService
 from app.services.assistant.assistant import AssistantService
 from app.services.assistant.assistant import AssistantService
 
 
-# import asyncio
-import nest_asyncio
-
-# 使得异步代码可以在已运行的事件循环中嵌套
-nest_asyncio.apply()
 
 
 # return '## important:You can use the "retrieval" tool to search for relevant information.\n If you are asking about the content of the files, please specify any keywords, topics, or context you are looking for to help retrieve the most relevant content.'
 # return '## important:You can use the "retrieval" tool to search for relevant information.\n If you are asking about the content of the files, please specify any keywords, topics, or context you are looking for to help retrieve the most relevant content.'
 
 

+ 0 - 4
app/services/file/impl/r2r_file.py

@@ -14,10 +14,6 @@ from app.services.file.impl.oss_file import OSSFileService
 
 
 # import asyncio
 # import asyncio
 from pathlib import Path
 from pathlib import Path
-import nest_asyncio
-
-# 使得异步代码可以在已运行的事件循环中嵌套
-nest_asyncio.apply()
 
 
 
 
 class R2RFileService(OSSFileService):
 class R2RFileService(OSSFileService):