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 圖片產生 #332

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

cdcd72
Copy link
Contributor

@cdcd72 cdcd72 commented May 21, 2024

支援 DALL-E 3 圖片產生(調整上仍基於使用 OpenAI API 的情境

新增兩個環境變數

  • OPENAI_IMAGE_GENERATION_MODEL
    • 預設:dall-e-2
  • OPENAI_IMAGE_GENERATION_QUALITY
    • 預設:standard

參數還可以怎麼設定可參考 https://platform.openai.com/docs/api-reference/images/create

另外 DALL-E 3 圖片大小,最低要為 1024x1024,故如果是使用 dall-e-3,但沒有特別調整 OPENAI_IMAGE_GENERATION_SIZE 環境變數的話,則預設都會拉到 1024x1024。

有參考 #328 程式碼,感謝 @Jakevin 貢獻想法。

Copy link

vercel bot commented May 21, 2024

@cdcd72 is attempting to deploy a commit to the Memo Chou's projects Team on Vercel.

A member of the Team first needs to authorize it.

@memochou1993 memochou1993 merged commit fa947ca into memochou1993:staging Jul 9, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants