Need python example for gpt-4o model authentication using client_id and client_secret.

Vijayakumar Elumalai 105 Reputation points
2024-09-17T16:38:29.55+00:00

Hello Team,

I am trying to make some python examples for gpt-4o model. I need to use client_id, client_secret & API endpoint to use gpt-4o model chat completions. can you share some references for code ?

Also, not able to install azure-ai-openai so i am not able to use the below library as well. Please help with this. Thanks!!

Note: Main things is instead of API key i wanted to use client_id and Client_secret for authentication.

from azure.ai.openai import OpenAI


Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,945 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.