From 0ee28d8e915405067a5e7f97023612d7f0ba2c71 Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Fri, 15 Dec 2023 12:46:53 -0500 Subject: [PATCH] change prompt for retries --- instructor/patch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instructor/patch.py b/instructor/patch.py index bb24fdf..e19a7d7 100644 --- a/instructor/patch.py +++ b/instructor/patch.py @@ -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: