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

[QUERY]how to use dall-e-2 in 1.0.0-beta.8? #40043

Open
fengsuxing opened this issue May 6, 2024 · 5 comments
Open

[QUERY]how to use dall-e-2 in 1.0.0-beta.8? #40043

fengsuxing opened this issue May 6, 2024 · 5 comments
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@fengsuxing
Copy link

fengsuxing commented May 6, 2024

Query/Question
how to use dall-e-2 in 1.0.0-beta.8?

i want to use dall-e-2 .but client.getImageGenerations(deploymentOrModelName, imageGenerationOptions) doesnot support dall-e-2 ,how to solve this?

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels May 6, 2024
@joshfree joshfree added the OpenAI label May 6, 2024
@github-actions github-actions bot removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label May 6, 2024
@joshfree
Copy link
Member

joshfree commented May 6, 2024

@mssfang PTAL

@fengsuxing
Copy link
Author

fengsuxing commented May 8, 2024

any solutions? @mssfang @joshfree

@mssfang
Copy link
Member

mssfang commented May 14, 2024

Hi, @fengsuxing Sorry to replay it late. I just get back from my vocation.
We do support DALL-E ("dall-e-2" or "dall-e-3") in the SDK. Wondering which region of Azure source you are using?

@fengsuxing
Copy link
Author

fengsuxing commented May 16, 2024

hello ,@mssfang in 1.0.0-beta.8, client.getImageGenerations(deploymentOrModelName, imageGenerationOptions) doesnot support "dall-e-2".if you think it supports,please give me an example on how to Call getImageGenerations using dall-e-2

@mssfang
Copy link
Member

mssfang commented May 16, 2024

@fengsuxing You can try to use this sample in the repo

 OpenAIClient client = new OpenAIClientBuilder()
      .credential(new KeyCredential("your-openai-key-here"))
      .buildClient();

For Azure Resource, you can create DALL-E-3(dall-2 is in preview)
https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#dall-e-models

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. OpenAI question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants