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 Azure OpenAI SDK - .NET Tutorial
From the course: Azure OpenAI in .NET
Chat completion with Azure OpenAI SDK
- [Instructor] Now that we have seen how easy it is to communicate with the LLM with the instance of the LLM using its REST endpoint, let's have a look how we can do the same thing using the Azure OpenAI SDK in a .NET application. Here I'm using a Polyglot Notebook, which allows me to execute C# code in a Python notebook style. So what I'm doing here is, I'm, first of all, installing the NuGet packages for Azure.AI.OpenAI. And at the point of time of recording of this training, the version 1.0.0-beta.7 was the latest version. So I'm using this version, and I'm also installing the NuGet package for DotNetEnv, and I'm pretty sure you guess why I'm using this NuGet package, it's to read the connectivity values, the API key, the endpoint. Also, the deployment names from the LLM model from the file that was created in one of the previous videos. And this is exactly what I'm doing here, so I'm referring to the application.env…