Skip to content

Commit 9bc8d60

Browse files
authored
filename with space will break running in windows (QwenLM#435)
1 parent 59fe2aa commit 9bc8d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎qwen_agent/agents/dialogue_retrieval_agent.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _run(self,
6464

6565
# Save content as file: This file is related to the session and the time
6666
content = '\n'.join(content)
67-
file_path = os.path.join(DEFAULT_WORKSPACE, f'dialogue_history_{session_id}_{datetime.datetime.now()}.txt')
67+
file_path = os.path.join(DEFAULT_WORKSPACE, f'dialogue_history_{session_id}_{datetime.datetime.now():%Y%m%d_%H%M%S}.txt')
6868
save_text_to_file(file_path, content)
6969

7070
new_content = [ContentItem(text=query), ContentItem(file=file_path)]

0 commit comments

Comments
 (0)