From 39d68f975cb12fc90ed8f93a00b68cfce96d68a3 Mon Sep 17 00:00:00 2001
From: YathavakrishnanMohan
<169874568+YathavakrishnanMohan@users.noreply.github.com>
Date: Wed, 3 Dec 2025 18:14:20 +0530
Subject: [PATCH] Update the Microsoft.Extensions.AI.OpenAI version to latest
---
Smart_Fill/MicrosoftAIExtension.cs | 2 +-
Smart_Fill/Smart_Fill.csproj | 4 ++--
Smart_Redaction/MicrosoftAIExtension.cs | 2 +-
Smart_Redaction/Smart_Redaction.csproj | 4 ++--
Smart_Summarize/MicrosoftAIExtension.cs | 2 +-
Smart_Summarize/Smart_Summarize.csproj | 4 ++--
6 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/Smart_Fill/MicrosoftAIExtension.cs b/Smart_Fill/MicrosoftAIExtension.cs
index 041bb29..3202d5c 100644
--- a/Smart_Fill/MicrosoftAIExtension.cs
+++ b/Smart_Fill/MicrosoftAIExtension.cs
@@ -19,7 +19,7 @@ internal class MicrosoftAIExtension
/// Key for the semantic kernal API
public MicrosoftAIExtension(string key)
{
- clientAI = new AzureOpenAIClient(new System.Uri(endpoint), new System.ClientModel.ApiKeyCredential(key)).AsChatClient(deploymentName);
+ clientAI = new AzureOpenAIClient(new System.Uri(endpoint), new System.ClientModel.ApiKeyCredential(key)).GetChatClient(deploymentName).AsIChatClient();
}
///
diff --git a/Smart_Fill/Smart_Fill.csproj b/Smart_Fill/Smart_Fill.csproj
index d76d3c0..fcb0e6f 100644
--- a/Smart_Fill/Smart_Fill.csproj
+++ b/Smart_Fill/Smart_Fill.csproj
@@ -14,7 +14,7 @@
-
-
+
+
diff --git a/Smart_Redaction/MicrosoftAIExtension.cs b/Smart_Redaction/MicrosoftAIExtension.cs
index c3d1d1e..0f0d268 100644
--- a/Smart_Redaction/MicrosoftAIExtension.cs
+++ b/Smart_Redaction/MicrosoftAIExtension.cs
@@ -19,7 +19,7 @@ internal class MicrosoftAIExtension
/// Key for the semantic kernal API
public MicrosoftAIExtension(string key)
{
- clientAI = new AzureOpenAIClient(new System.Uri(endpoint), new System.ClientModel.ApiKeyCredential(key)).AsChatClient(deploymentName);
+ clientAI = new AzureOpenAIClient(new System.Uri(endpoint), new System.ClientModel.ApiKeyCredential(key)).GetChatClient(deploymentName).AsIChatClient();
}
///
diff --git a/Smart_Redaction/Smart_Redaction.csproj b/Smart_Redaction/Smart_Redaction.csproj
index 129b473..08ad081 100644
--- a/Smart_Redaction/Smart_Redaction.csproj
+++ b/Smart_Redaction/Smart_Redaction.csproj
@@ -15,8 +15,8 @@
-
-
+
+
diff --git a/Smart_Summarize/MicrosoftAIExtension.cs b/Smart_Summarize/MicrosoftAIExtension.cs
index 18f5beb..ead5ebd 100644
--- a/Smart_Summarize/MicrosoftAIExtension.cs
+++ b/Smart_Summarize/MicrosoftAIExtension.cs
@@ -20,7 +20,7 @@ internal class MicrosoftAIExtension
/// Key for the semantic kernal API
public MicrosoftAIExtension(string key)
{
- clientAI = new AzureOpenAIClient(new System.Uri(endpoint), new System.ClientModel.ApiKeyCredential(key)).AsChatClient(deploymentName);
+ clientAI = new AzureOpenAIClient(new System.Uri(endpoint), new System.ClientModel.ApiKeyCredential(key)).GetChatClient(deploymentName).AsIChatClient();
}
///
diff --git a/Smart_Summarize/Smart_Summarize.csproj b/Smart_Summarize/Smart_Summarize.csproj
index 16c9684..10bbc55 100644
--- a/Smart_Summarize/Smart_Summarize.csproj
+++ b/Smart_Summarize/Smart_Summarize.csproj
@@ -16,8 +16,8 @@
-
-
+
+