Azure openai error 401, "Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.com), or have expired
Here is my python code, and encountered run time error, Error: 401 { "statusCode": 401, "message": "Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.com), or have expired." } import requests # Azure OpenAI Configuration API_KEY = "xxxxxx" #…