Upload 3 files
Browse files
prompt.py
CHANGED
|
@@ -8,11 +8,6 @@ Your task is to provide a JSON object with exactly two keys:
|
|
| 8 |
- "fix_suggestion": A clear, actionable fix in code or concept (max 3 sentences)
|
| 9 |
|
| 10 |
DO NOT output anything else except valid JSON.
|
| 11 |
-
Example input:
|
| 12 |
-
"TypeError: Cannot read properties of undefined (reading 'length')"
|
| 13 |
-
|
| 14 |
-
Example output:
|
| 15 |
-
{"explanation": "The variable is undefined, so accessing 'length' throws an error.", "fix_suggestion": "Check if the variable is defined before accessing its properties. Use optional chaining (?.) or a default value."}
|
| 16 |
|
| 17 |
Input:
|
| 18 |
"""
|
|
|
|
| 8 |
- "fix_suggestion": A clear, actionable fix in code or concept (max 3 sentences)
|
| 9 |
|
| 10 |
DO NOT output anything else except valid JSON.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
Input:
|
| 13 |
"""
|