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] support image output via OpenAI DALL-E model #806

Open
hsluoyz opened this issue May 13, 2024 · 0 comments
Open

[feature] support image output via OpenAI DALL-E model #806

hsluoyz opened this issue May 13, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@hsluoyz
Copy link
Contributor

hsluoyz commented May 13, 2024

We have the following existing code, but it may not work very well. Need to fix existing issues and make it work.

casibase/model/local.go

Lines 255 to 264 in a265905

modelResult := &ModelResult{}
if getOpenAiModelType(p.subType) == "Chat" {
if p.subType == "dall-e-3" {
reqUrl := openai.ImageRequest{
Prompt: question,
Model: openai.CreateImageModelDallE3,
Size: openai.CreateImageSize1024x1024,
ResponseFormat: openai.CreateImageResponseFormatURL,
N: 1,
}

@hsluoyz hsluoyz self-assigned this May 13, 2024
@hsluoyz hsluoyz added the enhancement New feature or request label May 13, 2024
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

No branches or pull requests

1 participant