microsoft / semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps
https://aka.ms/semantic-kernel
MIT License
20.44k stars 2.96k forks source link

.Net: Add Support for "dall-e-3" Model in OpenAITextToImageService Class #6269

Open Nurgo opened 1 month ago

Nurgo commented 1 month ago

Hi,

I propose we add support for the "dall-e-3" model within the OpenAITextToImageService class. The integration seems straightforward and the benefit to the users would be substantial.

Thank you for considering this request.

dmytrostruk commented 1 month ago

@Nurgo Please check these notebooks, they use "dall-e-3" model as example for image generation:

Nurgo commented 1 month ago

Hi @dmytrostruk , thank you for your reply. These notebooks only use "dall-e-3" if AddAzureOpenAIChatCompletion is used, and not AddOpenAITextToImage. From what I can see in the code, OpenAITextToImageService still uses "dall-e-2". Moreover, the image formats supported (256x256, 512x512, 1024x1024) are those of "dall-e-2".

dmytrostruk commented 1 month ago

@Nurgo Got it. Yes, looks like dall-e-3 is only implemented in AzureOpenAITextToImageService class, but not in OpenAITextToImageService.