From 62f19855bd571ee4092e9755ca05a68f03fe20a4 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Mon, 12 Feb 2024 00:54:39 +0100 Subject: [PATCH] enhanced --- lollms/personality.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lollms/personality.py b/lollms/personality.py index 685c71e..92d222a 100644 --- a/lollms/personality.py +++ b/lollms/personality.py @@ -2720,7 +2720,7 @@ The AI should respond in this format using data from actions_list: f"!@>coder: Here is the function that you are asking for:", "```python\n" ],2), callback=self.sink) - code = code.replace("```python\n```python\n", "```python\n") + code = code.replace("```python\n```python\n", "```python\n").replace("```\n```","```") code=self.extract_code_blocks(code) if len(code)>0: