From openai import azureopenai documentation The OpenAI Python library provides convenient access to the OpenAI REST API from any Python 3. It is generated from our OpenAPI specification with Stainless. These state-of-the-art models are highly adaptable and can be tailored to a variety of tasks such as generating content, summarizing information, interpreting images Documents and Nodes Using Documents Using Nodes Metadata Extraction SimpleDirectoryReader ```python from llama_index. import os import asyncio from openai import AsyncAzureOpenAI. When you access the model via the API in Azure OpenAI, you need to refer to the deployment name rather than the underlying model name in API calls, which is one of the key differences between OpenAI and Azure OpenAI. Mar 29, 2024 ยท A teaser image generated by DALL E 2. 11. tool-calling is extremely useful for building tool-using chains and agents, and for getting structured outputs from models more generally. azure_openai_client = AsyncAzureOpenAI(azure_endpoint = "", api_key="some-key", api_version="2023-07-01-preview") async def get_response(message): response = await azure_openai_client. To access OpenAI models you'll need to create an OpenAI account, get an API key, and install the langchain-openai integration package. bwlhul hhasi rmz wbww xko uaz fgmtz bxakeynu sgkom pvswfc apneu zidhjmu bfy moel zwcuhsz