Skip to content

Commit 23ea4a7

Browse files
[Automation] Generate SDK based on TypeSpec 0.10.0 (Azure#37328)
* update version * add back import * pick codegen change --------- Co-authored-by: XiaofeiCao <xiaofeicao@microsoft.com>
1 parent ed8e111 commit 23ea4a7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

eng/emitter-package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"main": "dist/src/index.js",
33
"dependencies": {
4-
"@azure-tools/typespec-java": "0.9.0"
4+
"@azure-tools/typespec-java": "0.10.0"
55
}
6-
}
6+
}

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,8 @@ public PollerFlux<BinaryData, BinaryData> beginBeginAzureBatchImageGenerationAsy
16881688
.setContext(
16891689
requestOptions != null && requestOptions.getContext() != null
16901690
? requestOptions.getContext()
1691-
: Context.NONE)),
1691+
: Context.NONE)
1692+
.setServiceVersion(this.getServiceVersion().getVersion())),
16921693
TypeReference.createInstance(BinaryData.class),
16931694
TypeReference.createInstance(BinaryData.class));
16941695
}
@@ -1756,7 +1757,8 @@ public SyncPoller<BinaryData, BinaryData> beginBeginAzureBatchImageGeneration(
17561757
.setContext(
17571758
requestOptions != null && requestOptions.getContext() != null
17581759
? requestOptions.getContext()
1759-
: Context.NONE)),
1760+
: Context.NONE)
1761+
.setServiceVersion(this.getServiceVersion().getVersion())),
17601762
TypeReference.createInstance(BinaryData.class),
17611763
TypeReference.createInstance(BinaryData.class));
17621764
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33
// Code generated by Microsoft (R) TypeSpec Code Generator.
4-
54
/** Package containing the data models for OpenAI. Azure OpenAI APIs for completions and search. */
65
package com.azure.ai.openai.models;
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33
// Code generated by Microsoft (R) TypeSpec Code Generator.
4-
54
/** Package containing the classes for OpenAI. Azure OpenAI APIs for completions and search. */
65
package com.azure.ai.openai;

0 commit comments

Comments
 (0)