From 23ea4a7c3527ee163c7477daee21f7f719a0b357 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 23 Oct 2023 23:23:44 -0700 Subject: [PATCH] [Automation] Generate SDK based on TypeSpec 0.10.0 (#37328) * update version * add back import * pick codegen change --------- Co-authored-by: XiaofeiCao --- eng/emitter-package.json | 4 ++-- .../azure/ai/openai/implementation/OpenAIClientImpl.java | 6 ++++-- .../main/java/com/azure/ai/openai/models/package-info.java | 1 - .../src/main/java/com/azure/ai/openai/package-info.java | 1 - 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 7f0a91a4cb29c..4797a09f99028 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,6 +1,6 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-java": "0.9.0" + "@azure-tools/typespec-java": "0.10.0" } -} +} \ No newline at end of file diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/implementation/OpenAIClientImpl.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/implementation/OpenAIClientImpl.java index 55764b4adf3ab..9bdc7d60d521f 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/implementation/OpenAIClientImpl.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/implementation/OpenAIClientImpl.java @@ -1688,7 +1688,8 @@ public PollerFlux beginBeginAzureBatchImageGenerationAsy .setContext( requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() - : Context.NONE)), + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(BinaryData.class)); } @@ -1756,7 +1757,8 @@ public SyncPoller beginBeginAzureBatchImageGeneration( .setContext( requestOptions != null && requestOptions.getContext() != null ? requestOptions.getContext() - : Context.NONE)), + : Context.NONE) + .setServiceVersion(this.getServiceVersion().getVersion())), TypeReference.createInstance(BinaryData.class), TypeReference.createInstance(BinaryData.class)); } diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/package-info.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/package-info.java index 378b0f64584b9..f52a231702c85 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/package-info.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/models/package-info.java @@ -1,6 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - /** Package containing the data models for OpenAI. Azure OpenAI APIs for completions and search. */ package com.azure.ai.openai.models; diff --git a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/package-info.java b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/package-info.java index 7a961bee7fc8b..84f842c5badbf 100644 --- a/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/package-info.java +++ b/sdk/openai/azure-ai-openai/src/main/java/com/azure/ai/openai/package-info.java @@ -1,6 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - /** Package containing the classes for OpenAI. Azure OpenAI APIs for completions and search. */ package com.azure.ai.openai;