Skip to content

Commit 6cd2643

Browse files
authored
initial release preparation for AOAI 2.3.0-beta.1 (#51785)
1 parent 1d72e62 commit 6cd2643

11 files changed

+56
-36
lines changed

eng/Packages.Data.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
</ItemGroup>
199199

200200
<ItemGroup Condition="$(MSBuildProjectName.StartsWith('Azure.AI.OpenAI'))">
201-
<PackageReference Update="OpenAI" Version="2.2.0" />
201+
<PackageReference Update="OpenAI" Version="2.3.0" />
202202
</ItemGroup>
203203

204204
<ItemGroup Condition="$(MSBuildProjectName.StartsWith('Azure.Developer.MicrosoftPlaywrightTesting')) or $(MSBuildProjectName.StartsWith('Azure.Developer.Playwright'))">

sdk/openai/Azure.AI.OpenAI/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Release History
22

3+
## 2.3.0-beta.1 (2025-08-07)
4+
5+
This update restores compatibility with the latest `2.3.0` release of `OpenAI` and enables access to the latest features. For details, please see [the full OpenAI 2.3.0 release notes](https://github.com/openai/openai-dotnet/blob/main/CHANGELOG.md#230-2025-08-01).
6+
7+
### Features Added
8+
9+
- A substantial number of new features are carried forward from the `OpenAI` library. Please see [the full OpenAI 2.3.0 release notes](https://github.com/openai/openai-dotnet/blob/main/CHANGELOG.md#230-2025-08-01) for details.
10+
311
## 2.2.0-beta.5 (2025-07-11)
412

513
This update converges new feature updates from the recent `2.2.0` release of `OpenAI` together with support based on the contemporary `2025-04-01-preview` Azure OpenAI Service API label.

sdk/openai/Azure.AI.OpenAI/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/openai/Azure.AI.OpenAI",
5-
"Tag": "net/openai/Azure.AI.OpenAI_d30b73003f"
5+
"Tag": "net/openai/Azure.AI.OpenAI_397b8f012c"
66
}

sdk/openai/Azure.AI.OpenAI/src/Azure.AI.OpenAI.csproj

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,17 @@
99
<DisableEnhancedAnalysis>true</DisableEnhancedAnalysis>
1010
<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
1111
<GenerateAPIListing>true</GenerateAPIListing>
12+
<NoWarn>$(NoWarn);CS1591;AZC0012;AZC0102;CS8002;CS0436;AZC0112;OPENAI001;OPENAI002;AOAI001</NoWarn>
13+
<!-- Needs System.ClientModel 1.5.0 in order to add the context and use the new overloads -->
14+
<!-- After this https://github.com/Azure/azure-sdk-for-net/issues/49916 we can remove this no warn -->
15+
<NoWarn>$(NoWarn);AZC0150</NoWarn>
1216
<ImplicitUsings>enable</ImplicitUsings>
1317
<LangVersion>preview</LangVersion>
1418
<Nullable>disable</Nullable>
1519
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
1620
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
1721
</PropertyGroup>
1822

19-
<PropertyGroup>
20-
<NoWarn>
21-
$(NoWarn);
22-
CS1591;
23-
AZC0012;
24-
AZC0102;
25-
CS8002;
26-
CS0436;
27-
AZC0112;
28-
OPENAI001;
29-
OPENAI002;
30-
AOAI001;
31-
AZC0150;
32-
AZC0035; <!-- Missing model factory methods. #51226-->
33-
</NoWarn>
34-
</PropertyGroup>
35-
3623
<ItemGroup>
3724
<InternalsVisibleTo Include="Azure.AI.OpenAI.Tests">
3825
<PublicKey>0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4</PublicKey>
@@ -53,8 +40,8 @@
5340
</When>
5441
<Otherwise>
5542
<PropertyGroup>
56-
<VersionPrefix>2.2.0</VersionPrefix>
57-
<VersionSuffix>beta.5</VersionSuffix>
43+
<VersionPrefix>2.3.0</VersionPrefix>
44+
<VersionSuffix>beta.1</VersionSuffix>
5845
</PropertyGroup>
5946
</Otherwise>
6047
</Choose>

sdk/openai/Azure.AI.OpenAI/src/Custom/Audio/AzureAudioClient.Protocol.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ public override Task<ClientResult> GenerateSpeechAsync(BinaryContent content, Re
2323
}
2424
#endif
2525

26-
internal override PipelineMessage CreateCreateTranscriptionRequest(BinaryContent content, string contentType, RequestOptions options)
26+
internal override PipelineMessage CreateTranscribeAudioRequest(BinaryContent content, string contentType, RequestOptions options)
2727
=> new AzureOpenAIPipelineMessageBuilder(Pipeline, _endpoint, _apiVersion, _deploymentName)
2828
.WithMethod("POST")
2929
.WithPath("audio", "transcriptions")
3030
.WithContent(content, contentType)
3131
.WithOptions(options)
3232
.Build();
3333

34-
internal override PipelineMessage CreateCreateTranslationRequest(BinaryContent content, string contentType, RequestOptions options)
34+
internal override PipelineMessage CreateTranslateAudioRequest(BinaryContent content, string contentType, RequestOptions options)
3535
=> new AzureOpenAIPipelineMessageBuilder(Pipeline, _endpoint, _apiVersion, _deploymentName)
3636
.WithMethod("POST")
3737
.WithPath("audio", "translations")
3838
.WithContent(content, contentType)
3939
.WithOptions(options)
4040
.Build();
4141

42-
internal override PipelineMessage CreateCreateSpeechRequest(BinaryContent content, RequestOptions options)
42+
internal override PipelineMessage CreateGenerateSpeechRequest(BinaryContent content, RequestOptions options)
4343
=> new AzureOpenAIPipelineMessageBuilder(Pipeline, _endpoint, _apiVersion, _deploymentName)
4444
.WithMethod("POST")
4545
.WithPath("audio", "speech")

sdk/openai/Azure.AI.OpenAI/src/Custom/Batch/AzureBatchClient.Protocol.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal override PipelineMessage CreateGetBatchesRequest(string after, int? lim
2929
.WithOptions(options)
3030
.Build();
3131

32-
internal override PipelineMessage CreateRetrieveBatchRequest(string batchId, RequestOptions options)
32+
internal override PipelineMessage CreateGetBatchRequest(string batchId, RequestOptions options)
3333
=> new AzureOpenAIPipelineMessageBuilder(Pipeline, _endpoint, _apiVersion, null)
3434
.WithMethod("GET")
3535
.WithPath("batches", batchId)

sdk/openai/Azure.AI.OpenAI/src/Custom/Chat/AzureChatClient.Protocol.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Azure.AI.OpenAI.Chat;
88

99
internal partial class AzureChatClient : ChatClient
1010
{
11-
internal override PipelineMessage CreateCreateChatCompletionRequest(BinaryContent content, RequestOptions options)
11+
internal override PipelineMessage CreateCompleteChatRequest(BinaryContent content, RequestOptions options)
1212
=> new AzureOpenAIPipelineMessageBuilder(Pipeline, _endpoint, _apiVersion, _deploymentName)
1313
.WithPath("chat", "completions")
1414
.WithMethod("POST")

sdk/openai/Azure.AI.OpenAI/src/Custom/Embeddings/AzureEmbeddingClient.Protocol.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Azure.AI.OpenAI.Embeddings;
88

99
internal partial class AzureEmbeddingClient : EmbeddingClient
1010
{
11-
internal override PipelineMessage CreateCreateEmbeddingRequest(BinaryContent content, RequestOptions options)
11+
internal override PipelineMessage CreateGenerateEmbeddingsRequest(BinaryContent content, RequestOptions options)
1212
=> new AzureOpenAIPipelineMessageBuilder(Pipeline, _endpoint, _apiVersion, _deploymentName)
1313
.WithMethod("POST")
1414
.WithPath("embeddings")

sdk/openai/Azure.AI.OpenAI/src/Custom/Files/AzureFileClient.Protocol.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public override ClientResult CompleteUpload(string uploadId, BinaryContent conte
7878
return ClientResult.FromResponse(Pipeline.ProcessMessage(message, options));
7979
}
8080

81-
internal override PipelineMessage CreateCreateFileRequest(BinaryContent content, string contentType, RequestOptions options)
81+
internal override PipelineMessage CreateUploadFileRequest(BinaryContent content, string contentType, RequestOptions options)
8282
=> new AzureOpenAIPipelineMessageBuilder(Pipeline, _endpoint, _apiVersion)
8383
.WithMethod("POST")
8484
.WithPath("files")
@@ -103,7 +103,7 @@ internal override PipelineMessage CreateDownloadFileRequest(string fileId, Reque
103103
.WithOptions(options)
104104
.Build();
105105

106-
internal override PipelineMessage CreateRetrieveFileRequest(string fileId, RequestOptions options)
106+
internal override PipelineMessage CreateGetFileRequest(string fileId, RequestOptions options)
107107
=> new AzureOpenAIPipelineMessageBuilder(Pipeline, _endpoint, _apiVersion)
108108
.WithMethod("GET")
109109
.WithPath("files", fileId)

sdk/openai/Azure.AI.OpenAI/src/Custom/Images/AzureImageClient.Protocol.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Azure.AI.OpenAI.Images;
88

99
internal partial class AzureImageClient : ImageClient
1010
{
11-
internal override PipelineMessage CreateCreateImageRequest(BinaryContent content, RequestOptions options)
11+
internal override PipelineMessage CreateGenerateImagesRequest(BinaryContent content, RequestOptions options)
1212
=> new AzureOpenAIPipelineMessageBuilder(Pipeline, _endpoint, _apiVersion, _deploymentName)
1313
.WithMethod("POST")
1414
.WithPath("images", "generations")
@@ -17,7 +17,7 @@ internal override PipelineMessage CreateCreateImageRequest(BinaryContent content
1717
.WithOptions(options)
1818
.Build();
1919

20-
internal override PipelineMessage CreateCreateImageEditRequest(BinaryContent content, string contentType, RequestOptions options)
20+
internal override PipelineMessage CreateGenerateImageEditsRequest(BinaryContent content, string contentType, RequestOptions options)
2121
=> new AzureOpenAIPipelineMessageBuilder(Pipeline, _endpoint, _apiVersion, _deploymentName)
2222
.WithMethod("POST")
2323
.WithPath("images", "edits")
@@ -26,7 +26,7 @@ internal override PipelineMessage CreateCreateImageEditRequest(BinaryContent con
2626
.WithOptions(options)
2727
.Build();
2828

29-
internal override PipelineMessage CreateCreateImageVariationRequest(BinaryContent content, string contentType, RequestOptions options)
29+
internal override PipelineMessage CreateGenerateImageVariationsRequest(BinaryContent content, string contentType, RequestOptions options)
3030
=> new AzureOpenAIPipelineMessageBuilder(Pipeline, _endpoint, _apiVersion, _deploymentName)
3131
.WithMethod("POST")
3232
.WithPath("images", "variations")

0 commit comments

Comments
 (0)