Skip to content

Commit 73e16b6

Browse files
authored
fix regression in visibility of extension method touched with 2.7.0-beta.1 (#54210)
1 parent 6f32260 commit 73e16b6

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

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

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

3+
## 2.7.0-beta.2 (2025-12-01)
4+
5+
### Bugs fixed
6+
7+
- Addressed a Thanksgiving mistake in the `beta.1` release wherein the `SetNewMaxCompletionTokensPropertyEnabled()` extension method was unintentionally removed from the public surface.
8+
39
## 2.7.0-beta.1 (2025-11-24)
410

511
This update restores compatibility with the latest `2.7.0` release of `OpenAI` and enables access to the latest features. For details, please see [the full OpenAI 2.7.0 release notes](https://github.com/openai/openai-dotnet/blob/main/CHANGELOG.md#270-2025-11-13).

sdk/openai/Azure.AI.OpenAI/api/Azure.AI.OpenAI.net8.0.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ public static void AddDataSource(this OpenAI.Chat.ChatCompletionOptions options,
434434
[System.Diagnostics.CodeAnalysis.ExperimentalAttribute("AOAI001")]
435435
public static Azure.AI.OpenAI.UserSecurityContext GetUserSecurityContext(this OpenAI.Chat.ChatCompletionOptions options) { throw null; }
436436
[System.Diagnostics.CodeAnalysis.ExperimentalAttribute("AOAI001")]
437+
public static void SetNewMaxCompletionTokensPropertyEnabled(this OpenAI.Chat.ChatCompletionOptions options, bool newPropertyEnabled = true) { }
438+
[System.Diagnostics.CodeAnalysis.ExperimentalAttribute("AOAI001")]
437439
public static void SetUserSecurityContext(this OpenAI.Chat.ChatCompletionOptions options, Azure.AI.OpenAI.UserSecurityContext userSecurityContext) { }
438440
}
439441
[System.Diagnostics.CodeAnalysis.ExperimentalAttribute("AOAI001")]

sdk/openai/Azure.AI.OpenAI/api/Azure.AI.OpenAI.netstandard2.0.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ public static void AddDataSource(this OpenAI.Chat.ChatCompletionOptions options,
386386
public static Azure.AI.OpenAI.ResponseContentFilterResult GetResponseContentFilterResult(this OpenAI.Chat.ChatCompletion chatCompletion) { throw null; }
387387
public static Azure.AI.OpenAI.ResponseContentFilterResult GetResponseContentFilterResult(this OpenAI.Chat.StreamingChatCompletionUpdate chatUpdate) { throw null; }
388388
public static Azure.AI.OpenAI.UserSecurityContext GetUserSecurityContext(this OpenAI.Chat.ChatCompletionOptions options) { throw null; }
389+
public static void SetNewMaxCompletionTokensPropertyEnabled(this OpenAI.Chat.ChatCompletionOptions options, bool newPropertyEnabled = true) { }
389390
public static void SetUserSecurityContext(this OpenAI.Chat.ChatCompletionOptions options, Azure.AI.OpenAI.UserSecurityContext userSecurityContext) { }
390391
}
391392
public partial class AzureSearchChatDataSource : Azure.AI.OpenAI.Chat.ChatDataSource, System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.Chat.AzureSearchChatDataSource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.Chat.AzureSearchChatDataSource>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<Otherwise>
4545
<PropertyGroup>
4646
<VersionPrefix>2.7.0</VersionPrefix>
47-
<VersionSuffix>beta.1</VersionSuffix>
47+
<VersionSuffix>beta.2</VersionSuffix>
4848
</PropertyGroup>
4949
</Otherwise>
5050
</Choose>

sdk/openai/Azure.AI.OpenAI/src/Custom/Chat/AzureChatExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private static ChangeTrackingList<ChatDataSource> GetInternalDataSources(this Ch
6060
}
6161

6262
[Experimental("AOAI001")]
63-
internal static void SetNewMaxCompletionTokensPropertyEnabled(this ChatCompletionOptions options, bool newPropertyEnabled = true)
63+
public static void SetNewMaxCompletionTokensPropertyEnabled(this ChatCompletionOptions options, bool newPropertyEnabled = true)
6464
=> options.SetMaxTokenPatchValues(newPropertyEnabled);
6565

6666
internal static void SetMaxTokenPatchValues(this ChatCompletionOptions options, bool? newPropertyRequested = null)

0 commit comments

Comments
 (0)