This commit is contained in:
Saifeddine ALOUI 2024-02-12 00:54:39 +01:00
parent 14b8b5b4a8
commit 62f19855bd

View File

@ -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: