Skip to content

Commit eaaf5e5

Browse files
committed
line breaker character made invalid for filenames
1 parent dbc5259 commit eaaf5e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interpreter/core/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def _streaming_chat(self, message=None, display=True):
269269
first_few_words = "_".join(first_few_words_list[:-1])
270270
else: # for languages like Chinese without blank between words
271271
first_few_words = self.messages[0]["content"][:15]
272-
for char in '<>:"/\\|?*!': # Invalid characters for filenames
272+
for char in '<>:"/\\|?*!\n': # Invalid characters for filenames
273273
first_few_words = first_few_words.replace(char, "")
274274

275275
date = datetime.now().strftime("%B_%d_%Y_%H-%M-%S")

0 commit comments

Comments
 (0)