Code edit tool error - deepseek & flash 2.5

When using deepseek or gemini flash 2.5 in agent mode, its unable to edit files since the update. Instead, I get this

function<|tool▁sep|>code_edit

for example:

function<|tool▁sep|>code_edit

{"target_file":"demo/inference_on_a_image.py","edits":[{"start_line":55,"end_line":55,"content":"    return image_pil, mask"},{"start_line":215,"end_line":215,"content":"    image_with_box.save(os.path.join(output_dir, \"pred.jpg\"))\n    \n    # Save cropped images for each detected box\n    for i, (box, label) in enumerate(zip(boxes_filt, pred_phrases)):\n        # Convert box from cxcywh to xyxy and scale to image size\n        box = box * torch.Tensor([W, H, W, H])\n        box[:2] -= box[2:] / 2\n        box[2:] += box[:2]\n        x0, y0, x1, y1 = box.int().tolist()\n        \n        # Crop the image\n        cropped_image = image_pil.crop((x0, y0, x1, y1))\n        cropped_image.save(os.path.join(output_dir, f\"cropped_{i}_{label}.jpg\"))"}],"explanation":"Added code to save cropped versions of the detected objects. The code converts the bounding box coordinates from normalized cxcywh format to pixel coordinates, then crops and saves each detected object as a separate image."}
```<|tool▁call▁end|><|tool▁calls▁end|>
1 Like