From 0763b9a12ec3fc8ac5021e231e07404a616c851b Mon Sep 17 00:00:00 2001 From: Joschka Braun Date: Wed, 3 May 2023 16:17:16 +0200 Subject: [PATCH] :bug: fix: summarize error --- src/options/generate/templates_user.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/options/generate/templates_user.py b/src/options/generate/templates_user.py index 1871a48..9fab116 100644 --- a/src/options/generate/templates_user.py +++ b/src/options/generate/templates_user.py @@ -209,10 +209,9 @@ The output would be: template_summarize_error = PromptTemplate.from_template( - '''Here is an error message I encountered during the docker build process: + '''Your task is to condense an error encountered during the docker build process. The error message is as follows: "{error}" -Your task is to summarize the error message as compact and informative as possible while maintaining all information necessary to debug the core issue. -Warnings are not worth mentioning.''' +Your response should be concise and informative, highlighting the core issue while omitting any warnings. It should also provide some additional context regarding the specific file and line number where the error occurred. The actual core error message should also be included.''' )