Skip to content

Commit 174e485

Browse files
committed
fix: update error template to include filename and new code fences
1 parent cf996f7 commit 174e485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa_tpls/fix_bug_with_err.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"q": "Please return the solution to fix the errors.\n", "t": "You are an expert in programming.\n{{p-}}\n\nWe have a file with content:\n```{{filetype}} \n{{content}}\n```\n\n{%if terminal%}\nYou encountered error when running or compiling it\n```\n{{terminal}}\n```\n{% endif %}\n\n\n{% if visual %}The error are potentially caused by the following code block(We call it *focused code block*).\n```{{filetype}} \n{{visual}}\n```\nPlease only return the code to replace the *focused code block*{% else %}\n{{f-}}\n{% endif %}\n\n{{q}}"}
1+
{"q": "Please return the solution to fix the errors.\n", "t": "You are an expert in programming.\n\n{% if p %}\nHere are a list of files for reference.\n{{p-}}\n{% endif %}\n\nWe have a file named {{filename}} with content:\n````{{filetype}} \n{{content}}\n````\n\n{%if terminal%}\nYou encountered error when running or compiling it\n```\n{{terminal}}\n```\n{% endif %}\n\n\n{% if visual %}The error are potentially caused by the following code block(We call it *focused code block*).\n```{{filetype}} \n{{visual}}\n```\nPlease only return the code to replace the *focused code block*{% else %}\n{{f-}}\n{% endif %}\n\n{{q}}"}

0 commit comments

Comments
 (0)