Skip to content

Commit

Permalink
Merge pull request #1448 from QUAGZA/main
Browse files Browse the repository at this point in the history
line breaker character made invalid for filenames
  • Loading branch information
KillianLucas authored Oct 10, 2024
2 parents 4f9cf78 + eaaf5e5 commit 286e9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def _streaming_chat(self, message=None, display=True):
first_few_words = "_".join(first_few_words_list[:-1])
else: # for languages like Chinese without blank between words
first_few_words = self.messages[0]["content"][:15]
for char in '<>:"/\\|?*!': # Invalid characters for filenames
for char in '<>:"/\\|?*!\n': # Invalid characters for filenames
first_few_words = first_few_words.replace(char, "")

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

0 comments on commit 286e9c5

Please sign in to comment.