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

[Feature] Dall·E 插件的完整参数 #132

Closed
Ikaleio opened this issue Dec 29, 2023 · 5 comments · Fixed by #134
Closed

[Feature] Dall·E 插件的完整参数 #132

Ikaleio opened this issue Dec 29, 2023 · 5 comments · Fixed by #134
Labels
enhancement New feature or request

Comments

@Ikaleio
Copy link

Ikaleio commented Dec 29, 2023

https://platform.openai.com/docs/api-reference/images/create

注意到 Dall·E 的 API 包括 style 参数,可以调整图片的风格(超现实/写实),目前没有传这个参数,导致无法让模型画出写实风格的图片。

同时模型的 quality 参数直接传进了 Prompt,我十分怀疑这是否有效,因为 API 中有单独的一个 quality 参数。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Feature] Complete parameters of Dall·E plug-in

@Hk-Gosuto Hk-Gosuto added the enhancement New feature or request label Dec 29, 2023
@Hk-Gosuto
Copy link
Owner

插件目前只公开了 promptsize 两个参数
计划将 qualitystyle 也提供给模型调用

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The plug-in currently only exposes two parameters: prompt and size
Plan to provide quality and style to model calls as well

@Ikaleio
Copy link
Author

Ikaleio commented Dec 29, 2023

我已经做了一个简单的实现,参见 https://github.com/d0j1a1701/ChatGPT-Next-Web-LangChain/blob/main/app/api/langchain-tools/dalle_image_generator.ts ,但因为我还对代码做了其它改动,所以就不发 PR 了

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I've made a simple implementation, see https://github.com/d0j1a1701/ChatGPT-Next-Web-LangChain/blob/main/app/api/langchain-tools/dalle_image_generator.ts, but since I'm still confused about the code Other changes have been made, so no PR will be issued.

@Hk-Gosuto Hk-Gosuto linked a pull request Dec 29, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants