Obtain an Azure AD access token to call an Azure OpenAI resource's endpoint from an on-premises application
I have to call my Azure OpenAI resource's ChatCompletions endpoint from the C# code of my on-prem application. I have the following code. I will obtain the client Id and client secret after I register my application with Azure Active…