Skip to content

Commit c2aa8d8

Browse files
authored
Azure OpenAI: 2.2.0-beta.1 (2025-01-01-preview feature support) (Azure#48184)
* (squash) 2.2.0-beta.1 release prep * descope incidental deprecated Assistants library changes * update-snippets/export-api
1 parent 7f58b3b commit c2aa8d8

File tree

129 files changed

+2400
-941
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+2400
-941
lines changed

eng/Packages.Data.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
</ItemGroup>
190190

191191
<ItemGroup Condition="$(MSBuildProjectName.StartsWith('Azure.AI.OpenAI'))">
192-
<PackageReference Update="OpenAI" Version="2.1.0" />
192+
<PackageReference Update="OpenAI" Version="2.2.0-beta.1" />
193193
</ItemGroup>
194194

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

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

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

3+
## 2.2.0-beta.1 (2025-02-07)
4+
5+
This preview release aligns with the corresponding `2.2.0` beta of `OpenAI` and the `2025-01-01-Preview` Azure OpenAI Service API version.
6+
7+
New features include since 2.1.0-beta.2 include:
8+
9+
- Audio input for Chat Completions using `gpt-4o-audio-preview` or other compatible models: provide input audio via `ChatMessageContentPart.CreateInputAudioPart()`, set `AudioOptions` and `ResponseModalities` on `ChatCompletionOptions`, retrieve response audio via `OutputAudio` on `ChatCompletion`, and reference audio history from the assistant by using the `AssistantChatMessage(ChatCompletion)` constructor or using `ChatMessageContentPart.CreateAudioPart(string)`. For more information, refer to the examples in [the OpenAI README](https://github.com/openai/openai-dotnet/blob/main/README.md).
10+
- Predicted outputs in Chat Completions: `ChatCompletionOptions` accepts an `OutputPrediction` property that can be used via `ChatOutputPrediction.CreateStaticContentPrediction()` with text content to optimize operation efficiency for scenarios like code completion. For more information, see [OpenAI's predicted outputs announcement](https://community.openai.com/t/introducing-predicted-outputs/1004502).
11+
- Chat Completions `o`-series model feature support: the new `developer` message role via `DeveloperChatMessage` (used just like `SystemChatMessage`), `ReasoningEffortLevel` on Chat Completion options
12+
- [AOAI exclusive] `UserSecurityContext` integration with [Defender for Cloud](https://learn.microsoft.com/azure/defender-for-cloud/gain-end-user-context-ai); add a `UserSecurityContext` instance to `ChatCompletionOptions` with `SetUserSecurityContext()`
13+
14+
### Breaking Changes
15+
16+
- **Batch**: files uploaded for batch operations (`UploadFile` with `FileUploadPurpose.Batch`) will now report a `status` of `processed`, matching expected behavior against OpenAI's `/v1` endpoint. This is a change from past behavior where such files would initially report `pending` and a later `processed`, `error`, or other status depending on operation progress. Batch input validation is instead consistently performed from the batch client.
17+
318
## 2.1.0 (2024-12-05)
419

520
This GA library release aligns functionality with the latest `2024-10-21` stable service API label.

sdk/openai/Azure.AI.OpenAI/Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22
<PropertyGroup>
3-
<AzureOpenAILibraryVersion>2.1.0</AzureOpenAILibraryVersion>
4-
<GAServiceVersionLabel>2024_10_21</GAServiceVersionLabel>
3+
<AzureOpenAILibraryVersion>2.2.0</AzureOpenAILibraryVersion>
54
<!--
65
During development, we may want to get ahead of the published Nuget package versions. These next property flags
76
allow you to replace Nuget package references with external assembly .dll references, or even the source code
87
projects in a more simplified way.
98
-->
109
<!--
11-
<ExternalOpenAILibrary>../../external/OpenAI/netstandard2.0/OpenAI.dll</ExternalOpenAILibrary>
10+
<ExternalOpenAILibrary>../../external/netstandard2.0/OpenAI.dll</ExternalOpenAILibrary>
11+
<GAServiceVersionLabel>2024_10_21</GAServiceVersionLabel>
1212
<SystemClientModelVersion>1.1.0-beta.5</SystemClientModelVersion>
1313
<ExternalOpenAISource>../../external/OpenAI/src/OpenAI.csproj</ExternalOpenAISource>
1414
<ExternalAzureCoreSource>$(RepoRoot)/sdk/core/Azure.Core/src/Azure.Core.csproj</ExternalAzureCoreSource>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con
504504
[msdocs_openai_tts_quickstart]: https://learn.microsoft.com/azure/ai-services/openai/text-to-speech-quickstart
505505
[msdocs_openai_completion]: https://learn.microsoft.com/azure/cognitive-services/openai/how-to/completions
506506
[msdocs_openai_embedding]: https://learn.microsoft.com/azure/cognitive-services/openai/concepts/understand-embeddings
507-
[style-guide-msft]: https://learn.microsoft.com/style-guide/capitalization
507+
[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization
508508
[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide
509509
[azure_openai_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/openai/Azure.AI.OpenAI/src/Custom/AzureOpenAIClient.cs
510510
[openai_rest]: https://learn.microsoft.com/azure/cognitive-services/openai/reference

0 commit comments

Comments
 (0)