LLMs
Azure
GPT models can be used with Azure’s OpenAI API.
Authentication
Set your AZURE_OPENAI_API_KEY
and AZURE_OPENAI_ENDPOINT
environment variables.
Usage
Use AzureOpenAIChat
with your Assistant
:
Params
name
str
default: "AzureOpenAIChat"The name identifier for the assistant.
model
str
requiredThe specific model ID used for generating responses. This field is required.
api_key
str
The API key for authenticating requests to the Azure OpenAI service.
api_version
str
default: "2023-12-01-preview"The version of the Azure OpenAI API to use.
azure_deployment
str
The deployment name or ID in Azure.
base_url
str
The base URL for making API requests to the Azure OpenAI service.
azure_ad_token
str
The Azure Active Directory token for authenticating requests.
azure_ad_token_provider
str
The provider for obtaining Azure Active Directory tokens.
openai_client
AzureOpenAIClient
An instance of AzureOpenAIClient provided for making API requests.
Was this page helpful?