From ff4a8079c9121ea435ee9486e38773f1aaf37c98 Mon Sep 17 00:00:00 2001 From: PrithisSf3973 Date: Thu, 3 Oct 2024 16:54:14 +0530 Subject: [PATCH] Updated "Kernal" to "Kernel" --- .../AIService/ComboBoxAzureAIService.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/SmartAIComboBox/SmartAIComboBox/AIService/ComboBoxAzureAIService.cs b/SmartAIComboBox/SmartAIComboBox/AIService/ComboBoxAzureAIService.cs index 63b7bfd..b435075 100644 --- a/SmartAIComboBox/SmartAIComboBox/AIService/ComboBoxAzureAIService.cs +++ b/SmartAIComboBox/SmartAIComboBox/AIService/ComboBoxAzureAIService.cs @@ -29,7 +29,7 @@ public class ComboBoxAzureAIService private IChatCompletionService? _chatCompletion; /// - /// The kernal + /// The kernel /// private Kernel? _kernel; @@ -63,12 +63,12 @@ private async void ValidateCredential() { #region Azure OpenAI // Use below method for Azure Open AI - this.GetAzureOpenAIKernal(); + this.GetAzureOpenAIKernel(); #endregion #region Google Gemini // Use below method for Google Gemini - //this.GetGoogleGeminiAIKernal(); + //this.GetGoogleGeminiAIKernel(); #endregion bool isValidUri = Uri.TryCreate(endpoint, UriKind.Absolute, out _uriResult) @@ -83,7 +83,7 @@ private async void ValidateCredential() { if (_chatHistory != null && _chatCompletion != null) { - // test the semantic kernal with message. + // test the semantic kernel with message. _chatHistory.AddSystemMessage("Hello, Test Check"); await _chatCompletion.GetChatMessageContentAsync(chatHistory: _chatHistory, kernel: _kernel); } @@ -99,9 +99,9 @@ private async void ValidateCredential() #region Azure OpenAI /// - /// To get the Azure open ai kernal method + /// To get the Azure open ai kernel method /// - private void GetAzureOpenAIKernal() + private void GetAzureOpenAIKernel() { // Create the chat history _chatHistory = new ChatHistory(); @@ -109,10 +109,10 @@ private void GetAzureOpenAIKernal() { var builder = Kernel.CreateBuilder().AddAzureOpenAIChatCompletion(deploymentName, endpoint, key); - // Get the kernal from build + // Get the kernel from build _kernel = builder.Build(); - //Get the chat completions from kernal + //Get the chat completions from kernel _chatCompletion = _kernel.GetRequiredService(); } catch (Exception) @@ -126,7 +126,7 @@ private void GetAzureOpenAIKernal() /// /// To get the google Gemini ai kermal /// - private void GetGoogleGeminiAIKernal() + private void GetGoogleGeminiAIKernel() { // //First Add the below package to the application // add package Microsoft.SemanticKernel.Connectors.Google @@ -138,7 +138,7 @@ private void GetGoogleGeminiAIKernal() // _kernelBuilder.AddGoogleAIGeminiChatCompletion(modelId: "NAME_OF_MODEL", apiKey: key); // Kernel _kernel = _kernelBuilder.Build(); - // //Get the chat completions from kernal + // //Get the chat completions from kernel // _chatCompletion = _kernel.GetRequiredService(); } #endregion