go-openai icon indicating copy to clipboard operation
go-openai copied to clipboard

The CreateEditImage API should have an optional Mask parameter.

Open itegel opened this issue 2 years ago • 0 comments

In image.go func CreateEditImage, Mask is required in current implementation: // mask mask, err := writer.CreateFormFile("mask", request.Mask.Name()) if err != nil { return } But it is optional in official docs: https://platform.openai.com/docs/api-reference/images/create-edit /* mask string Optional An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where image should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as image. */

itegel avatar Mar 13 '23 10:03 itegel