Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

print failed generations for better debugging

Abi Raja42ce8b194150
diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.py
index d57d7795..4eb9928f 100644
--- a/backend/routes/generate_code.py
+++ b/backend/routes/generate_code.py
@@ -351,6 +351,7 @@ async def stream_code(websocket: WebSocket):
if isinstance(completion, Exception):
completions[index] = ""
print("Generation failed for variant", index)
+ print(completion)
print("Models used for generation: ", variant_models)