This commit is contained in:
Saifeddine ALOUI 2024-02-12 01:26:35 +01:00
parent 39d3340b97
commit 7a24effb62

View File

@ -2713,11 +2713,13 @@ The AI should respond in this format using data from actions_list:
context,
f"!@>instructions:"
f"{instructions}",
"Do not provide usage example.",
"Do not ask the user to update the code. This code should be self sufficient.",
f"Here is the signature of the function:\n{execution_function_signature}",
"Don't call the function, just write it",
f"!@>coder: Here is the function code that performs exactly what you have asked me to do:",
"Do not provide usage example.",
"Do not ask the user to update the code. This code should be self sufficient.",
"You don't have the right to ask the user to fill in any thing",
"write a completely working function",
f"!@>coder: Here is the function code that performs exactly what you have asked me to do without extra comments:",
"```python\n"
],2), callback=self.sink)
code = code.replace("```python\n```python\n", "```python\n").replace("```\n```","```")