Skip to content

Commit 1924eaf

Browse files
openai, remove dependent on azure-core-experimental (Azure#36733)
* openai, remove dependent on azure-core-experimental * regen, changes due to behavior change in typespec-azure-core 0.34 about LRO and pollingOperation
1 parent 8f9272a commit 1924eaf

File tree

5 files changed

+48
-19
lines changed

5 files changed

+48
-19
lines changed

sdk/openai/azure-ai-openai/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@
6767
<artifactId>azure-core-http-netty</artifactId>
6868
<version>1.13.7</version> <!-- {x-version-update;com.azure:azure-core-http-netty;dependency} -->
6969
</dependency>
70-
<dependency>
71-
<groupId>com.azure</groupId>
72-
<artifactId>azure-core-experimental</artifactId>
73-
<version>1.0.0-beta.43</version> <!-- {x-version-update;com.azure:azure-core-experimental;dependency} -->
74-
</dependency>
7570

7671
<!-- provided scope -->
7772
<dependency>

sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/OpenAIAsyncClient.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,13 @@ public Mono<ImageResponse> getImages(ImageGenerationOptions imageGenerationOptio
530530
* <pre>{@code
531531
* {
532532
* id: String (Required)
533-
* status: String (Required)
533+
* created: long (Required)
534+
* expires: Long (Optional)
535+
* result (Optional): {
536+
* created: long (Required)
537+
* data: DataModelBase (Required)
538+
* }
539+
* status: String(notRunning/running/succeeded/canceled/failed) (Required)
534540
* error (Optional): {
535541
* code: String (Required)
536542
* message: String (Required)
@@ -552,7 +558,7 @@ public Mono<ImageResponse> getImages(ImageGenerationOptions imageGenerationOptio
552558
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
553559
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
554560
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
555-
* @return the {@link PollerFlux} for polling of status details for long running operations.
561+
* @return the {@link PollerFlux} for polling of long-running operation.
556562
*/
557563
@Generated
558564
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)

sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/OpenAIClient.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,13 @@ public ImageResponse getImages(ImageGenerationOptions imageGenerationOptions) {
529529
* <pre>{@code
530530
* {
531531
* id: String (Required)
532-
* status: String (Required)
532+
* created: long (Required)
533+
* expires: Long (Optional)
534+
* result (Optional): {
535+
* created: long (Required)
536+
* data: DataModelBase (Required)
537+
* }
538+
* status: String(notRunning/running/succeeded/canceled/failed) (Required)
533539
* error (Optional): {
534540
* code: String (Required)
535541
* message: String (Required)
@@ -551,7 +557,7 @@ public ImageResponse getImages(ImageGenerationOptions imageGenerationOptions) {
551557
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
552558
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
553559
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
554-
* @return the {@link SyncPoller} for polling of status details for long running operations.
560+
* @return the {@link SyncPoller} for polling of long-running operation.
555561
*/
556562
@Generated
557563
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)

sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/implementation/OpenAIClientImpl.java

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,13 @@ public Response<BinaryData> getChatCompletionsWithAzureExtensionsWithResponse(
12681268
* <pre>{@code
12691269
* {
12701270
* id: String (Required)
1271-
* status: String (Required)
1271+
* created: long (Required)
1272+
* expires: Long (Optional)
1273+
* result (Optional): {
1274+
* created: long (Required)
1275+
* data: DataModelBase (Required)
1276+
* }
1277+
* status: String(notRunning/running/succeeded/canceled/failed) (Required)
12721278
* error (Optional): {
12731279
* code: String (Required)
12741280
* message: String (Required)
@@ -1290,8 +1296,7 @@ public Response<BinaryData> getChatCompletionsWithAzureExtensionsWithResponse(
12901296
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
12911297
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
12921298
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
1293-
* @return status details for long running operations along with {@link Response} on successful completion of {@link
1294-
* Mono}.
1299+
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
12951300
*/
12961301
@ServiceMethod(returns = ReturnType.SINGLE)
12971302
private Mono<Response<BinaryData>> beginAzureBatchImageGenerationWithResponseAsync(
@@ -1328,7 +1333,13 @@ private Mono<Response<BinaryData>> beginAzureBatchImageGenerationWithResponseAsy
13281333
* <pre>{@code
13291334
* {
13301335
* id: String (Required)
1331-
* status: String (Required)
1336+
* created: long (Required)
1337+
* expires: Long (Optional)
1338+
* result (Optional): {
1339+
* created: long (Required)
1340+
* data: DataModelBase (Required)
1341+
* }
1342+
* status: String(notRunning/running/succeeded/canceled/failed) (Required)
13321343
* error (Optional): {
13331344
* code: String (Required)
13341345
* message: String (Required)
@@ -1350,7 +1361,7 @@ private Mono<Response<BinaryData>> beginAzureBatchImageGenerationWithResponseAsy
13501361
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
13511362
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
13521363
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
1353-
* @return status details for long running operations along with {@link Response}.
1364+
* @return the response body along with {@link Response}.
13541365
*/
13551366
@ServiceMethod(returns = ReturnType.SINGLE)
13561367
private Response<BinaryData> beginAzureBatchImageGenerationWithResponse(
@@ -1385,7 +1396,13 @@ private Response<BinaryData> beginAzureBatchImageGenerationWithResponse(
13851396
* <pre>{@code
13861397
* {
13871398
* id: String (Required)
1388-
* status: String (Required)
1399+
* created: long (Required)
1400+
* expires: Long (Optional)
1401+
* result (Optional): {
1402+
* created: long (Required)
1403+
* data: DataModelBase (Required)
1404+
* }
1405+
* status: String(notRunning/running/succeeded/canceled/failed) (Required)
13891406
* error (Optional): {
13901407
* code: String (Required)
13911408
* message: String (Required)
@@ -1407,7 +1424,7 @@ private Response<BinaryData> beginAzureBatchImageGenerationWithResponse(
14071424
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
14081425
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
14091426
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
1410-
* @return the {@link PollerFlux} for polling of status details for long running operations.
1427+
* @return the {@link PollerFlux} for polling of long-running operation.
14111428
*/
14121429
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
14131430
public PollerFlux<BinaryData, BinaryData> beginBeginAzureBatchImageGenerationAsync(
@@ -1446,7 +1463,13 @@ public PollerFlux<BinaryData, BinaryData> beginBeginAzureBatchImageGenerationAsy
14461463
* <pre>{@code
14471464
* {
14481465
* id: String (Required)
1449-
* status: String (Required)
1466+
* created: long (Required)
1467+
* expires: Long (Optional)
1468+
* result (Optional): {
1469+
* created: long (Required)
1470+
* data: DataModelBase (Required)
1471+
* }
1472+
* status: String(notRunning/running/succeeded/canceled/failed) (Required)
14501473
* error (Optional): {
14511474
* code: String (Required)
14521475
* message: String (Required)
@@ -1468,7 +1491,7 @@ public PollerFlux<BinaryData, BinaryData> beginBeginAzureBatchImageGenerationAsy
14681491
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
14691492
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
14701493
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
1471-
* @return the {@link SyncPoller} for polling of status details for long running operations.
1494+
* @return the {@link SyncPoller} for polling of long-running operation.
14721495
*/
14731496
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
14741497
public SyncPoller<BinaryData, BinaryData> beginBeginAzureBatchImageGeneration(

sdk/openai/azure-ai-openai/src/main/java/module-info.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
module com.azure.ai.openai {
66
requires transitive com.azure.core;
7-
requires transitive com.azure.core.experimental;
87

98
exports com.azure.ai.openai;
109
exports com.azure.ai.openai.models;

0 commit comments

Comments
 (0)