jack há 3 meses atrás
pai
commit
b6d6561a69

+ 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.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.'
 

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

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