Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DALL-E-3发送的大小参数有误 #280

Open
naizhao opened this issue Nov 17, 2024 · 5 comments
Open

DALL-E-3发送的大小参数有误 #280

naizhao opened this issue Nov 17, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@naizhao
Copy link

naizhao commented Nov 17, 2024

DALL-E-3模型只支持下面的大小,但对话中发送的大小是512

openai error: '512x512' is not one of ['1024x1024', '1792x1024', '1024x1792'] - 'size'

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.

@naizhao naizhao added the bug Something isn't working label Nov 17, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: DALL-E-3 The size parameter sent is wrong

@XiaomaiTX
Copy link
Contributor

未能复现问题,请检查你的上游是否为标准的 OpenAI API 格式提供的 DALL-E-3 模型

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


If the problem cannot be reproduced, please check whether your upstream provides the DALL-E-3 model in the standard OpenAI API format.

@zmh-program
Copy link
Member

zmh-program commented Dec 8, 2024

开源版判断逻辑的实现是这样的:

Size: utils.Multi[ImageSize](
props.Model == globals.Dalle3,
ImageSize1024,
ImageSize512,
),

判断为 model == dall-e-3 后即返回 1024x1024 size。
可能造成的原因:模型名非官方名称 dall-e-3;模型名增加前/后缀。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The implementation of the open source version’s judgment logic is as follows:

Size: utils.Multi[ImageSize](
props.Model == globals.Dalle3,
ImageSize1024,
ImageSize512,
),

After it is determined that model == dall-e-3, 1024x1024 size is returned.
Possible reasons: The model name is unofficial name dall-e-3; a suffix is ​​added to the model name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants