blazor-azure-openai

The Blazor WebAssembly app that inspired the Microsoft //Build 2023 demo app.

MIT License

Stars
86

Blazor 💜 OpenAI

Getting Started

Note To run this example, you'll need an Azure subscription with access enabled for the Azure OpenAI service. You can request access here. You can also visit here to get some free Azure credits to get you started.

This example relies on three environment variables:

setx AzureOpenAI__ApiKey "<Your Azure OpenAI API Key>"
setx AzureOpenAI__Endpoint "<Your Azure OpenAI API endpoint>"
setx AzureOpenAI__DeploymentId "<Your Azure OpenAI deploymend id>"
export AzureOpenAI__ApiKey="<Your Azure OpenAI API Key>"
export AzureOpenAI__Endpoint="<Your Azure OpenAI API endpoint>"
export AzureOpenAI__DeploymentId="<Your Azure OpenAI deploymend id>"

Home screen

Voice chat screen

Voice chat screen with navigation menu collapsed

Text-to-speech preferences dialog displayed

Example response text

Example response text continued 2/4

Example response text continued 3/4

Example response text continued 4/4

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!