Update scripts/format_response.py
Browse files
scripts/format_response.py
CHANGED
|
@@ -500,7 +500,7 @@ def format_plan_instructions(plan_instructions):
|
|
| 500 |
try:
|
| 501 |
instructions = json.loads(cleaned_str)
|
| 502 |
except json.JSONDecodeError:
|
| 503 |
-
raise ValueError(f"Invalid JSON format in plan instructions: {str(e)}")
|
| 504 |
elif isinstance(plan_instructions, dict):
|
| 505 |
instructions = plan_instructions
|
| 506 |
else:
|
|
|
|
| 500 |
try:
|
| 501 |
instructions = json.loads(cleaned_str)
|
| 502 |
except json.JSONDecodeError:
|
| 503 |
+
raise ValueError(f"Invalid JSON format in plan instructions: {str(e)} +\n {str(plan_instructions)}")
|
| 504 |
elif isinstance(plan_instructions, dict):
|
| 505 |
instructions = plan_instructions
|
| 506 |
else:
|