memochou1993 / gpt-ai-assistant

OpenAI + LINE + Vercel = GPT AI Assistant
https://memochou1993.github.io/gpt-ai-assistant-docs/
MIT License
7.23k stars 9.33k forks source link

支援 DALL-E 3 圖片產生 #332

Closed cdcd72 closed 1 month ago

cdcd72 commented 3 months ago

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

新增兩個環境變數

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

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

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

vercel[bot] commented 3 months ago

@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.