Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions samples/notebooks/dotnet/Getting-Started-Notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
"source": [
"// Setup SemanticFunctions and the Kernel\n",
"using Microsoft.SemanticKernel;\n",
"using Microsoft.SemanticKernel.Configuration;\n",
"using Microsoft.SemanticKernel.SemanticFunctions;\n",
"using Microsoft.SemanticKernel.KernelExtensions;\n",
"using System.IO;\n",
Expand Down Expand Up @@ -145,9 +146,9 @@
"// Configure AI backend used by the kernel\n",
"var (useAzureOpenAI,model, azureEndpoint, apiKey, orgId) = Settings.LoadFromFile();\n",
"if (useAzureOpenAI)\n",
" kernel.Config.AddAzureOpenAICompletionBackend(\"davinci\", model, azureEndpoint, apiKey);\n",
" kernel.Config.AddAzureOpenAITextCompletion(\"davinci\", model, azureEndpoint, apiKey);\n",
"else\n",
" kernel.Config.AddOpenAICompletionBackend(\"davinci\", model, apiKey, orgId);"
" kernel.Config.AddOpenAITextCompletion(\"davinci\", model, apiKey, orgId);"
]
},
{
Expand Down