From eaaf5e575409cb11e65a956cc83846b23c2e54e2 Mon Sep 17 00:00:00 2001 From: QUAGZA Date: Tue, 10 Sep 2024 12:18:42 +0530 Subject: [PATCH] line breaker character made invalid for filenames --- interpreter/core/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter/core/core.py b/interpreter/core/core.py index 0f3e53247f..5a26b35679 100644 --- a/interpreter/core/core.py +++ b/interpreter/core/core.py @@ -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")