Repository navigation
feat(image_edit): add mask parameter for selective image editing - #1008
Conversation
|
@infer CI is failing, can you fix this? also the CI was stopped early please finalise it and prepare it for a review (update the title and body of the PR). use /go /ponytail:ponytail |
|
Model: Todos
Pull Request✅ Infer Result: SuccessAll CI checks pass! Let me finalize. All done. Here's a summary of what was accomplished: SummaryPR #1008 is now ready for review. Here's what was done: CI FixesThe previous commit (
PR Housekeeping
What the PR doesAdds an optional Model: Tokens: 1,836,833 in · 5,498 out · 1,842,331 total (24 requests) Tool calls: 30 total · 87% success rate TracesStats
|
The EditImage signature was changed to add a maskPath parameter. This updates the test files to match the new signature.
|
🎉 This PR is included in version 0.162.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Resolves #988
Summary
Adds a
maskparameter to the ImageEdit tool, allowing users to specify a PNG mask file whose transparent (alpha=0) areas mark the editable region. All non-transparent pixels are preserved exactly during the edit operation.Changes
maskparameter to ImageEdit tool definition, validation, and executionImageService.EditImageinterface to accept amaskPathparameterImageService.EditImage- reads, decodes, and attaches the mask to the API requestEditImagesignatureHow it works
maskstring parameter (a local PNG file path)CreateImageEditrequest as theMaskfield