File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -204,9 +204,9 @@ async def compile_and_fix_rust(request: dict):
204204 for filename , content in current_files .items ():
205205 output_text += f"[filename: { filename } ]\n { content } \n \n "
206206
207- # Return JSON response instead of plain text
207+ # Replace the existing JSONResponse in the success case with this
208208 return JSONResponse (content = {
209- "status " : "success" ,
209+ "success " : True ,
210210 "message" : "Code fixed and compiled successfully" ,
211211 "attempts" : attempts ,
212212 "combined_text" : output_text .strip (),
@@ -281,7 +281,7 @@ async def compile_and_fix_rust(request: dict):
281281
282282 # If we've exhausted all attempts, return error
283283 return JSONResponse (content = {
284- "status " : "failed" ,
284+ "success " : False ,
285285 "message" : f"Failed to fix code after { max_attempts } attempts" ,
286286 "attempts" : attempts ,
287287 "combined_text" : output_text .strip (),
You can’t perform that action at this time.
0 commit comments