RageAgainstThePixel / OpenAI-DotNet

A Non-Official OpenAI RESTful API Client for DotNet
https://openai.com
MIT License
700 stars 149 forks source link

Change GenerateImageAsync return objects => include revised_prompt #164

Closed LucGosso closed 11 months ago

LucGosso commented 12 months ago

Feature Request

For Dalle3 they now return the revised_prompt,

would be nice if GenerateImageAsync returned same object => https://platform.openai.com/docs/api-reference/images/object

{
  "url": "...",
  "revised_prompt": "..."
}

instead of string array.

Thank you!

StephenHodgson commented 12 months ago

Sure, but is a breaking change

LucGosso commented 12 months ago

Make an overload of GenerateImageAsync ?

StephenHodgson commented 12 months ago

It's ok, I already have a plan for what to do. I also need to keep the unity package version of this in sync with proposed changes as well.