Azure open AI while developing python script using api key getting error
import openai # Setup openai.api_key = 'xxxxxxxxxxxxxxxxxxxxxx' openai.api_base = "xxxxxxxxxxxxxxxxxxxxxx" openai.api_version = '2024-08-20' # Ensure this is correct def test_openai(): try: response = openai.Image.create( prompt="A dog in rain image", model="dall-e-3", # Try with a different model ifneeded n=1, size="1024x1024" )…