You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrade NuGet dependencies to latest compatible versions
Bumps the following packages to their latest stable/preview releases:
- Microsoft.SemanticKernel: 1.72.0 -> 1.76.0
- Microsoft.Extensions.Http.Resilience: 10.5.0 -> 10.6.0
- NuGet.Packaging/NuGet.Protocol: 7.3.1 -> 7.6.0
- ModelContextProtocol*: 1.2.0 -> 1.3.0
- Microsoft.SemanticKernel.Connectors.PgVector: 1.72.0-preview -> 1.74.0-preview
- System.CommandLine: 2.0.7 -> 2.0.8
- Microsoft.SourceLink.GitHub: 10.0.203 -> 10.0.300
- Azure.Monitor.OpenTelemetry.Profiler: 1.0.0-beta9 -> 1.0.1-beta.1
**Breaking Changes in OpenAI SDK:**
The upgrade pulls OpenAI 2.10.0 (via Semantic Kernel 1.76.0) which deprecates the old Responses API.
Migrated AIChatService from:
- OpenAIResponseClient -> ResponsesClient
- ResponseCreationOptions -> CreateResponseOptions
Updated method invocations to use new signature where InputItems is populated directly
on the options object rather than passed as separate arguments.
All chat service tests pass; build succeeds.
Copy file name to clipboardExpand all lines: EssentialCSharp.Chat.Shared/Services/AIChatService.cs
+24-23Lines changed: 24 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ public partial class AIChatService
17
17
privatereadonlyAIOptions_Options;
18
18
privatereadonlyAzureOpenAIClient_AzureClient;
19
19
#pragma warning disable OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning restore OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
22
22
privatereadonlyAISearchService_SearchService;
23
23
privatereadonlyILogger<AIChatService>_Logger;
@@ -34,7 +34,7 @@ public AIChatService(IOptions<AIOptions> options, AISearchService searchService,
34
34
_AzureClient=azureClient;
35
35
36
36
#pragma warning disable OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning restore OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
39
39
}
40
40
@@ -48,7 +48,7 @@ public AIChatService(IOptions<AIOptions> options, AISearchService searchService,
48
48
/// <param name="reasoningEffortLevel">Optional reasoning effort level for reasoning models</param>
49
49
/// <param name="enableContextualSearch">Enable vector search for contextual information</param>
50
50
/// <param name="endUserId">Authenticated end-user identifier. Currently reserved for forwarding
51
-
/// to Azure OpenAI for abuse monitoring once the SDK exposes <c>ResponseCreationOptions.User</c>.</param>
51
+
/// to Azure OpenAI for abuse monitoring via <c>CreateResponseOptions.EndUserId</c>.</param>
@@ -100,12 +100,10 @@ public AIChatService(IOptions<AIOptions> options, AISearchService searchService,
100
100
101
101
// Create the streaming response using the Responses API
102
102
#pragma warning disable OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning restore OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning disable OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning restore OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning restore OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
/// Creates response options with optional features
339
340
/// </summary>
340
341
#pragma warning disable OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning restore OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
353
354
354
355
// Set the system prompt via Instructions — this is stateless across turns when using previous_response_id,
#pragma warning disable OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
426
-
ResponseCreationOptionsresponseOptions,
427
+
CreateResponseOptionsresponseOptions,
427
428
#pragma warning restore OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
/// All behavior-affecting properties are copied so that tool-call continuation legs
537
538
/// produce identical generation behavior to the initial leg.
538
539
/// </summary>
539
540
#pragma warning disable OPENAI001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
0 commit comments