From the course: Azure OpenAI in .NET
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Chat completion with REST calls - .NET Tutorial
From the course: Azure OpenAI in .NET
Chat completion with REST calls
- [Robert] It's time for the next demo, and this time we will see how easy it is to call the REST API endpoint of the deployed OpenAI models. And to do this I switch back to my Visual Studio code environment, and this time we go into the 02 Folder. In the 02 Folder you can find three files which help us to call the REST endpoint. The first file is the .n file. This file was created in one of the previous videos where we deployed the Azure Cognitive Services instances and the GPT model as well as the embedding model. We can find in the file the necessary information like the API endpoint. We can see the API key and also the deployment names of the two models that we have deployed in one of the previous videos. And if you haven't created the instances, the Azure Cognitive Services instances using the bicep file provided with this training material, you simply can rename the .n example file into .nth and then provide the…