From 42b28def4927243c9b9f07795820a53c8da507e8 Mon Sep 17 00:00:00 2001 From: Zvonimir Sabljic Date: Thu, 1 Aug 2024 21:19:22 -0700 Subject: [PATCH] Fix for when there are no backend or frontend logs --- core/prompts/bug-hunter/log_data.prompt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/prompts/bug-hunter/log_data.prompt b/core/prompts/bug-hunter/log_data.prompt index d74ec13ea..af76a1a67 100644 --- a/core/prompts/bug-hunter/log_data.prompt +++ b/core/prompts/bug-hunter/log_data.prompt @@ -10,3 +10,4 @@ Here are the logs we added to the frontend: {% endif %}{% if fix_attempted %} The problem wasn't solved with the last changes. You have 2 options - to tell me exactly where is the problem happening or to add more logs to better determine where is the problem. If you think we should add more logs around the code to better understand the problem, tell me code snippets in which we should add the logs. If you think you know where the issue is, don't add any new logs but explain what log print tell point you to the problem, what the problem is, what is the solution to this problem and how the solution will fix the problem. What is your answer? Make sure not to repeat mistakes from before that didn't work. {% endif %} +{% if backend_logs is none and frontend_logs is none and fix_attempted == false %}Human didn't supply any data{% endif %}