jlyons210 / discord-bot-ol-bootsie

Ol' Bootsie is a highly configurable Discord bot that interfaces with the OpenAI API, written for Node.js in Typescript.
The Unlicense
2 stars 2 forks source link

Implement additional `CreateImage` features #143

Closed jlyons210 closed 9 months ago

jlyons210 commented 10 months ago

Request

There are additional features exposed by the OpenAI image create API. Some features differ in support (quality, style - dall-e-3 only), and implementation (output image sizes).

Example:

size - string or null - Optional - Defaults to 1024x1024 The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024 for dall-e-2. Must be one of 1024x1024, 1792x1024, or 1024x1792 for dall-e-3 models.

Solution

Since the API endpoint is the same for both models, I'd like to implement the configurable pieces in an extensible way.