Skip to content

Latest commit

 

History

History
 
 

02-PersonaChat

Persona chat

This sample demonstrates how to create a chat bot with a custom persona using V1 of Semantic Kernel.

Prerequisites

Configuring the sample

Configure an Azure OpenAI endpoint

cd ./dotnet/samples/02-PersonaChat

dotnet user-secrets set "AzureOpenAI:Gpt35TurboDeploymentName" "gpt-35-turbo"
dotnet user-secrets set "AzureOpenAI:Gpt4DeploymentName" "gpt-4"
dotnet user-secrets set "AzureOpenAI:Endpoint" "... your Azure OpenAI endpoint ..."
dotnet user-secrets set "AzureOpenAI:ApiKey" "... your Azure OpenAI key ..."

Running the sample

cd ./dotnet/samples/02-PersonaChat

dotnet run