From aa85a0111b0a74f5e5da1f3b5f6d88e3ef57440c Mon Sep 17 00:00:00 2001 From: FangYin Cheng Date: Sat, 2 Sep 2023 11:31:33 +0800 Subject: [PATCH] fix: Fix comment error --- pilot/openapi/api_v1/api_v1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilot/openapi/api_v1/api_v1.py b/pilot/openapi/api_v1/api_v1.py index e6cc6a365..fdbfcf2b1 100644 --- a/pilot/openapi/api_v1/api_v1.py +++ b/pilot/openapi/api_v1/api_v1.py @@ -226,7 +226,7 @@ async def params_load(conv_uid: str, chat_mode: str, doc_file: UploadFile = File tmp_fd, tmp_path = tempfile.mkstemp( dir=os.path.join(KNOWLEDGE_UPLOAD_ROOT_PATH, chat_mode) ) - # TODO Use no noblocking file save with aiofiles + # TODO Use noblocking file save with aiofiles with os.fdopen(tmp_fd, "wb") as tmp: tmp.write(await doc_file.read()) shutil.move(