Skip to content

Commit 5cb485c

Browse files
committed
fix: update temporary directory naming for chat_id and UUID
1 parent eb2e5d2 commit 5cb485c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/application/flow/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,9 +766,9 @@ def mcp_response_generator(
766766
loop = get_global_loop() # 使用共享循环
767767
# 创建临时文件夹
768768
if chat_id:
769-
temp_dir = os.path.join("/tmp", chat_id[:8])
769+
temp_dir = os.path.join("/tmp", chat_id)
770770
else:
771-
temp_dir = os.path.join("/tmp", uuid.uuid7().hex[:8])
771+
temp_dir = os.path.join("/tmp", str(uuid.uuid7()))
772772
skills_dir = os.path.join(temp_dir, "skills")
773773
os.makedirs(skills_dir, exist_ok=True)
774774

0 commit comments

Comments
 (0)