hashan-7 commited on
Commit
86be2ba
·
verified ·
1 Parent(s): db5e74c

Update code

Browse files
Files changed (1) hide show
  1. prompt_builder.py +3 -3
prompt_builder.py CHANGED
@@ -171,9 +171,9 @@ def build_refactor_prompt(
171
  "Follow these rules:\n"
172
  "1. Preserve the original behavior unless the user explicitly asked for functional changes.\n"
173
  "2. Preserve all existing function names, class names, method names, parameters, argument order, return behavior, and public interfaces.\n"
174
- "3. Do not rename anything unless it is absolutely necessary, and avoid renaming by default.\n"
175
- "4. Improve readability, maintainability, and structure only.\n"
176
- "5. Keep the result practical and clean.\n"
177
  "6. If the code is already simple and acceptable, make only minimal improvements.\n"
178
  "7. Return the improved code and a concise explanation of what was improved.\n\n"
179
  f"{shared}\n\n"
 
171
  "Follow these rules:\n"
172
  "1. Preserve the original behavior unless the user explicitly asked for functional changes.\n"
173
  "2. Preserve all existing function names, class names, method names, parameters, argument order, return behavior, and public interfaces.\n"
174
+ "3. You must keep the original callable names exactly the same.\n"
175
+ "4. Do not rename variables, parameters, functions, classes, or methods unless absolutely necessary.\n"
176
+ "5. Improve readability, maintainability, and structure only.\n"
177
  "6. If the code is already simple and acceptable, make only minimal improvements.\n"
178
  "7. Return the improved code and a concise explanation of what was improved.\n\n"
179
  f"{shared}\n\n"