- .NET 8 is required to run this sample.
- Install the recommended extensions
- C#
- Semantic Kernel Tools (optional)
Using .NET Secret Manager
Configure an OpenAI endpoint
cd RecommandationSystem
dotnet user-secrets set "Global:LlmService" "OpenAI"
dotnet user-secrets set "OpenAI:ModelType" "chat-completion"
dotnet user-secrets set "OpenAI:ChatCompletionModelId" "gpt-3.5-turbo"
dotnet user-secrets set "OpenAI:ApiKey" "... your OpenAI key ..."
dotnet user-secrets set "OpenAI:OrgId" "... your ord ID ..."
Configure an Azure OpenAI endpoint
cd RecommandationSystem
dotnet user-secrets set "Global:LlmService" "AzureOpenAI"
dotnet user-secrets set "AzureOpenAI:DeploymentType" "chat-completion"
dotnet user-secrets set "AzureOpenAI:ChatCompletionDeploymentName" "gpt-35-turbo"
dotnet user-secrets set "AzureOpenAI:ChatCompletionModelId" "gpt-3.5-turbo-0613"
dotnet user-secrets set "AzureOpenAI:Endpoint" "... your Azure OpenAI endpoint ..."
dotnet user-secrets set "AzureOpenAI:ApiKey" "... your Azure OpenAI key ..."
After configuring the sample, to build and run the console application just hit F5
.
To build and run the console application from the terminal use the following commands:
dotnet build
dotnet run