mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-07 19:34:04 +00:00
fix: Fix comment error
This commit is contained in:
parent
cbb72ff0db
commit
aa85a0111b
@ -226,7 +226,7 @@ async def params_load(conv_uid: str, chat_mode: str, doc_file: UploadFile = File
|
|||||||
tmp_fd, tmp_path = tempfile.mkstemp(
|
tmp_fd, tmp_path = tempfile.mkstemp(
|
||||||
dir=os.path.join(KNOWLEDGE_UPLOAD_ROOT_PATH, chat_mode)
|
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:
|
with os.fdopen(tmp_fd, "wb") as tmp:
|
||||||
tmp.write(await doc_file.read())
|
tmp.write(await doc_file.read())
|
||||||
shutil.move(
|
shutil.move(
|
||||||
|
Loading…
Reference in New Issue
Block a user