change prompt for retries

This commit is contained in:
Jason Liu
2023-12-15 12:46:53 -05:00
parent f4dab8aba0
commit 0ee28d8e91
+2 -2
View File
@@ -241,7 +241,7 @@ async def retry_async(
kwargs["messages"].append(
{
"role": "user",
"content": f"Recall the function correctly, exceptions found\n{e}",
"content": f"Recall the function correctly, fix the errors, exceptions found\n{e}",
}
)
if mode == Mode.MD_JSON:
@@ -286,7 +286,7 @@ def retry_sync(
kwargs["messages"].append(
{
"role": "user",
"content": f"Recall the function correctly, exceptions found\n{e}",
"content": f"Recall the function correctly, fix the errorsexceptions found\n{e}",
}
)
if mode == Mode.MD_JSON: