Closed wangjl1110 closed 7 months ago
@wangjl1110 Thanks for your feedback! We will investigate and update as appropriate.
@wangjl1110 I've delegated this to @PatrickFarley, a content author, to review and share their valuable insights.
@wangjl1110 Are you calling the REST API directly or using the Java SDK, or something else?
@wangjl1110 Are you calling the REST API directly or using the Java SDK, or something else?
Feel free to reopen this issue to continue debugging
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.