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 0822d2f commit fb4a11fCopy full SHA for fb4a11f
app/main.py
@@ -135,9 +135,12 @@ async def compile_and_fix_rust(request: dict):
135
return PlainTextResponse(content=output_text.strip())
136
else:
137
# For errors, return the JSON with detailed error information
138
- # Add the combined text to the response for easier client use
139
- result["combined_text"] = output_text.strip()
140
- return JSONResponse(content=result)
+ return JSONResponse(content={
+ "status": "error",
+ "message": f"Failed to fix code: {result.get('build_output', '')}",
141
+ "attempts": result.get("attempts", []),
142
+ "combined_text": output_text.strip()
143
+ })
144
145
async def handle_project_generation(
146
project_id: str,
0 commit comments