iuiaoin / wechat-gptbot

A wechat robot based on ChatGPT with no risk, very stable! 🚀
MIT License
579 stars 113 forks source link

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

Closed latorc closed 9 months ago

latorc commented 9 months ago

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(高清)

iuiaoin commented 9 months ago

Thanks for your pull request ~