2.0.0 (2024-09-30)
This update marks the first stable library version for Azure.AI.OpenAI
. It snaps its dependency to OpenAI
's matched 2.0.0
stable version and targets the latest Azure OpenAI Service stable api-version
label of 2024-06-01
. As a GA label, the 2.0.0
stable version exposes a subset of preview features, with preview library labels continuing to support preview features.
Specifically included in the GA library release:
AudioClient
, supporting transcription and translation using thewhisper
modelChatClient
, supporting chat completions, including Azure-specific features:- Embedded request and response content filter annotations
- Azure Search and Cosmos DB data sources for Azure OpenAI On Your Data
EmbeddingClient
, supportingtext-embedding
model embedding operationsImageClient
, supportingdall-e-3
image generation
Assistants, Audio Generation, Batch, Files, Fine-Tuning, and Vector Stores are not yet included in the GA surface; they will continue to be available in preview library releases and the originating Azure OpenAI Service api-version
labels.
Breaking Changes
AzureOpenAIClient
constructors acceptingAzureKeyCredential
have been removed; please use theApiKeyCredential
constructors, instead. Note thatAzureKeyCredential
will inherit fromApiKeyCredential
in a future update and thatAzureKeyCredential
has a non-browsable Key property that may be used for conversion in the interim.- The
AzureOpenAIClientOptions
ApplicationId
has been renamed to a more descriptiveUserAgentApplicationId
.
From OpenAI 2.0.0 stable
- Implemented
ChatMessageContent
to encapsulate the representation of content parts inChatMessage
,ChatCompletion
, andStreamingChatCompletionUpdate
. (commit_hash) - Changed the representation of function arguments to
BinaryData
inChatToolCall
,StreamingChatToolCallUpdate
,ChatFunctionCall
, andStreamingChatFunctionCallUpdate
. (commit_hash) - Renamed
OpenAIClientOptions
'sApplicationId
toUserAgentApplicationId
(commit_hash) - Renamed
StreamingChatToolCallUpdate
'sId
toToolCallId
(commit_hash) - Renamed
StreamingChatCompletionUpdate
'sId
toCompletionId
(commit_hash) - Replaced
Auto
andNone
in the deprecatedChatFunctionChoice
withCreateAutoChoice()
andCreateNoneChoice()
(commit_hash) - Replaced the deprecated
ChatFunctionChoice(ChatFunction)
constructor withCreateNamedChoice(string functionName)
(commit_hash) - Renamed
FileClient
toOpenAIFileClient
and the correspondingGetFileClient()
method inOpenAIClient
toGetOpenAIFileClient()
. (commit_hash) - Renamed
ModelClient
toOpenAIModelClient
and the correspondingGetModelClient()
method inOpenAIClient
toGetOpenAIModelClient()
. (commit_hash)