MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.47k forks source link

service version not suppored in the sdk listed in the document #117629

Closed wangjl1110 closed 9 months ago

wangjl1110 commented 11 months ago

For dalle3 model, it is currently supported in 2023-12-01-preview api version

while service version is hard coded in the sdk. Thus the sample code is not working.

// // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) //

package com.azure.ai.openai;

import com.azure.core.util.ServiceVersion;

public enum OpenAIServiceVersion implements ServiceVersion { V2022_12_01("2022-12-01"), V2023_05_15("2023-05-15"), V2023_06_01_PREVIEW("2023-06-01-preview"), V2023_07_01_PREVIEW("2023-07-01-preview"), V2023_08_01_PREVIEW("2023-08-01-preview"), V2023_09_01_PREVIEW("2023-09-01-preview");

private final String version;

private OpenAIServiceVersion(String version) {
    this.version = version;
}

public String getVersion() {
    return this.version;
}

public static OpenAIServiceVersion getLatest() {
    return V2023_09_01_PREVIEW;
}

}


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

AjayBathini-MSFT commented 11 months ago

@wangjl1110 Thanks for your feedback! We will investigate and update as appropriate.

RamanathanChinnappan-MSFT commented 11 months ago

@wangjl1110 I've delegated this to @PatrickFarley, a content author, to review and share their valuable insights.

PatrickFarley commented 10 months ago

@wangjl1110 , which SDK are you using?

wangjl1110 commented 10 months ago

@PatrickFarley I'm using the following sdk when I raised this issue

com.azure azure-ai-openai 1.0.0-beta.5
PatrickFarley commented 9 months ago

@wangjl1110 This is the Java SDK, correct? Our Java SDK doesn't currently support DALL-E 3

PatrickFarley commented 9 months ago

Feel free to reopen if you have any follow-up questions

please-close