refactor: summarize error message without line number

This commit is contained in:
Florian Hönicke
2023-05-27 09:44:16 +02:00
parent 803c51703e
commit f426604b69
2 changed files with 58 additions and 1 deletions

View File

@@ -221,7 +221,7 @@ template_summarize_error = PromptTemplate.from_template(
"{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 (100 words).
It should also provide some additional context regarding the specific file and line number where the error occurred. \
It should also provide some additional context regarding the specific file. \
Note that you must not suggest a solution to the error.
Warnings are not worth mentioning.'''
)