raiyanyahya / dallecli

💠 Provide users with the ability to generate, edit and filter images using the DALL-E 3 API provided by OpenAI, all from the command line.
https://dallecli.com
MIT License
60 stars 8 forks source link

wide images #29

Closed Konfekt closed 8 months ago

Konfekt commented 11 months ago

As of now, only square images can be generated by dallecli. How about allowing for wide images as documented

namespace dalle {
// Create images from a text-only prompt.
type text2im = (_: {
// The resolution of the requested image, which can be wide, square, or tall. Use 1024x1024 (square) as the default unless the prompt suggests a wide image, 1792x1024, or a full-body portrait, in which case 1024x1792 (tall) should be used instead. Always include this parameter in the request.
size?: "1792x1024" | "1024x1024" | "1024x1792",
// The user's original image description, potentially modified to abide by the dalle policies. If the user does not suggest a number of captions to create, create four of them. If creating multiple captions, make them as diverse as possible. If the user requested modifications to previous images, the captions should not simply be longer, but rather it should be refactored to integrate the suggestions into each of the captions. Generate no more than 4 images, even if the user requests more.
prompts: string[],
// A list of seeds to use for each prompt. If the user asks to modify a previous image, populate this field with the seed used to generate that image from the image dalle metadata.
seeds?: number[], }) => any;
} // namespace dalle.
raiyanyahya commented 8 months ago

@Konfekt a new version with dalle3 as default has been released. Please update. Thank you for waiting! You should be able to have wider images now.