enhancement: 作图默认调用dall-e-3模型,支持新参数:model, quality, style #97
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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(高清)