azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

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

Open fengsuxing opened this issue 1 year ago • 5 comments

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?

fengsuxing avatar May 06 '24 03:05 fengsuxing

@mssfang PTAL

joshfree avatar May 06 '24 16:05 joshfree

any solutions? @mssfang @joshfree

fengsuxing avatar May 08 '24 05:05 fengsuxing

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?

mssfang avatar May 14 '24 19:05 mssfang

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

fengsuxing avatar May 16 '24 04:05 fengsuxing

@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

mssfang avatar May 16 '24 18:05 mssfang

Hi @fengsuxing. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

github-actions[bot] avatar Jun 05 '24 23:06 github-actions[bot]

Hi @fengsuxing, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

github-actions[bot] avatar Jun 13 '24 03:06 github-actions[bot]