From c048ac4f863522544dd2e3c30f87ebe73a8e3f11 Mon Sep 17 00:00:00 2001 From: Jeff Kramer Date: Fri, 31 Mar 2023 12:42:43 -0700 Subject: [PATCH] Update README.md Fixing the AddAzureOpenAITextCompletion call and adding required libs. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 070e3a14a4bb..9abdc137ad78 100644 --- a/README.md +++ b/README.md @@ -97,12 +97,14 @@ Here is a quick example of how to use Semantic Kernel from a C# console app. ```csharp using Microsoft.SemanticKernel; +using Microsoft.SemanticKernel.KernelExtensions; +using Microsoft.SemanticKernel.Configuration; var kernel = Kernel.Builder.Build(); // For Azure Open AI details please see // https://learn.microsoft.com/azure/cognitive-services/openai/quickstart?pivots=rest-api -kernel.Config.AddAzureOpenAITextCompletionService( +kernel.Config.AddAzureOpenAITextCompletion( "davinci-azure", // Alias used by the kernel "text-davinci-003", // Azure OpenAI *Deployment ID* "https://contoso.openai.azure.com/", // Azure OpenAI *Endpoint*