Troubleshooting AzureOpenAI Notebook Issues and Code Errors
Hi Jason, I hope you are doing well. I tried to run the notebook you shared with me. I am getting None for labels, score, and explanation. I am using AzureOpenAI with AzureAd cred. Please check the screenshots and the error message. Also, I do not want to use llama_index instead of AzureOpenAI client. Please take a look at the code below. I am using openai==1.29.0 from openai import AzureOpenAI openai_client = AzureOpenAI(azure_endpoint = f"https://{AZURE_OPENAI_SERVICE}.openai.azure.com", api_version = OPENAI_API_VERSION, azure_ad_token_provider = token_provider, ) response = openai_client.chat.completions.create( model=CHAT_MODEL_DEPLOYMENT_NAME, # model = "deployment_name". response_format={ "type": "json_object" }, messages=[ {"role": "system", "content": """ ### Insurance Policy Information Extraction System"""} ] )
