openai / openai-dotnet

The official .NET library for the OpenAI API
https://www.nuget.org/packages/OpenAI
MIT License
1.55k stars 162 forks source link

GenerateImageEdit not working #250

Closed Fableton closed 1 month ago

Fableton commented 1 month ago

Service

OpenAI

Describe the bug

GenerateImageEdit is not working and force you to use "dall-e-2"

Steps to reproduce

Send any image to function

Code snippets

//Retunr the same image.
ClientResult<GeneratedImage> response = imageClient.GenerateImageEdit(imagePath, prompt);

OS

windows

.NET version

core 8

Library version

2.0

joseharriaga commented 1 month ago

Thank you for reaching out, @Fableton ! Generating edited images is currently only supported by the DALL-E-2 model as per the documentation here: 🔗 https://platform.openai.com/docs/api-reference/images/createEdit