MicrosoftDocs / azure-docs

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

the path for image generation is not correct #117632

Closed wangjl1110 closed 7 months ago

wangjl1110 commented 9 months ago

In the definition of the sdk you have

@Post("/images/generations:submit") @ExpectedResponses({202}) @UnexpectedResponseExceptionTypes({@UnexpectedResponseExceptionType( value = ClientAuthenticationException.class, code = {401} ), @UnexpectedResponseExceptionType( value = ResourceNotFoundException.class, code = {404} ), @UnexpectedResponseExceptionType( value = ResourceModifiedException.class, code = {409} ), @UnexpectedResponseExceptionType(HttpResponseException.class)}) Response beginAzureBatchImageGenerationSync(@HostParam("endpoint") String var1, @QueryParam("api-version") String var2, @HeaderParam("accept") String var3, @BodyParam("application/json") BinaryData var4, RequestOptions var5, Context var6);

there are 2 error

first is, when you call image/generation api, there is no submit suffix in the request path

second is, you need deployment prefix to correctly route to the endpoint, like deployments/{deploymentId}/xxx


Document Details

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

AjayBathini-MSFT commented 9 months ago

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

RamanathanChinnappan-MSFT commented 9 months ago

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

PatrickFarley commented 8 months ago

@wangjl1110 Are you calling the REST API directly or using the Java SDK, or something else?

PatrickFarley commented 7 months ago

@wangjl1110 Are you calling the REST API directly or using the Java SDK, or something else?

PatrickFarley commented 7 months ago

Feel free to reopen this issue to continue debugging

please-close