We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39b0782 commit 60bebebCopy full SHA for 60bebeb
app/main.py
@@ -142,11 +142,13 @@ async def compile_and_fix_rust(request: dict):
142
return PlainTextResponse(content=output_text.strip())
143
else:
144
# For errors, return the JSON with detailed error information
145
+ # Include the combined text in both the combined_text and final_files fields
146
return JSONResponse(content={
147
"status": "error",
148
"message": f"Failed to fix code: {result.get('build_output', '')}",
149
"attempts": result.get("attempts", []),
- "combined_text": output_text.strip()
150
+ "combined_text": output_text.strip(),
151
+ "final_files": result["final_files"] # Include the individual files in the response
152
})
153
154
async def handle_project_generation(
0 commit comments