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

enhancement: 作图默认调用dall-e-3模型,支持新参数:model, quality, style #97

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

latorc
Copy link
Contributor

@latorc latorc commented Nov 7, 2023

OpenAI API新增dall-e-3模型,支持新参数。
参考:
https://cookbook.openai.com/articles/what_is_new_with_dalle_3
以及OpenAI API docs.

config增加新keys说明:

DALL-E 作图模型和参数信息参见:https://cookbook.openai.com/articles/what_is_new_with_dalle_3
"create_image_model": "dall-e-3", #作图模型(可选)。值:dall-e-2, dall-e-3(默认)
"create_image_size": "1024x1024", #图片分辨率。dall-e-2支持256x256, 512x512, 1024x1024;dall-e-3支持1024x1024, 1792x1024, 1024x1792
"create_image_style": "vivid", #图片风格(可选, 仅对dall-e-3模型生效)。值:vivid(默认, 生动), natural(自然)
"create_image_quality": "hd", #图片质量(可选, 仅对dall-e-3模型生效)。值:standard(默认, 标准), hd(高清)

Dall-E画图API调用支持新模型dall-e-3,以及新参数:model, style, quality
new config keys:
create_image_model
create_image_style
create_image_quality
@iuiaoin
Copy link
Owner

iuiaoin commented Nov 14, 2023

Thanks for your pull request ~

@iuiaoin iuiaoin added the enhancement Enhance exsiting features label Nov 14, 2023
@iuiaoin iuiaoin merged commit cf814e2 into iuiaoin:main Nov 14, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance exsiting features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants