1.0.0-beta.9 (2024-06-06)
Features Added
- Added support for service API versions,
2024-04-01-preview
and2024-05-01-preview
. - Note that
AOAI
refers to Azure OpenAI andOAI
refers to OpenAI. - Added timestamp granularity to Whisper transcription; this is an array of enumerated string values
(word and/or segment) that controls which, if any, timestamp information is emitted to transcription results.AudioTranscriptionTimestampGranularity
enum to represent the timestamp granularity options for Whisper transcription.AudioTranscriptionWord
class to represent the word timestamp information in the transcription results.
- Added two new audio formats,
wav
andpcm
, to theSpeechGenerationResponseFormat
enum.
AOAI ONLY
- Added a new RAI content filter schema type,
ContentFilterDetailedResults
, that features:- The boolean
filtered
property fromContentFilterResult
. - An array named
details
of the existingContentFilterBlocklistIdResult
type, each of which has:- The base boolean
filtered
- A string
id
- The base boolean
- The boolean
- Added a new property
indirectAttack
inContentFilterResultDetailsForPrompt
class to represent the indirect attack results. - Added a new property
custom_blocklists
inImageGenerationPromptFilterResults
class to represent the prompt filter results.
On Your Data
- New string enum type used in options:
OnYourDataContextProperty
: "citations" | "intent" | "allRetrievedDocuments"- This is used in arrays like a bitmasked flag; "give me citations and documents" ==
[ "citations", "allRetrievedDocuments" ]
- It's not dissimilar to how transcription uses
timestamp_granularities[]
- This is used in arrays like a bitmasked flag; "give me citations and documents" ==
- New model type used in response extensions:
retrievedDocument
- Inherits from existing
citation
- Required properties:
content
(string, inherited),search_queries
(array of strings),data_source_index
(int32),original_search_score
(double) - Optional properties:
title
,url
,filepath
,chunk_id
(all strings inherited fromcitation
);re_rank_score
(double)
- Inherits from existing
- New options fields for chat extension parameters (request options):
max_search_queries
(optional int32)allow_partial_result
(optional boolean)include_contexts
(optional array of the aboveOnYourDataContextProperty
enum (effective flag selection))- Affected
*parameters
types:AzureSearchChatExtensionParameters
AzureMachineLearningIndexChatExtensionParameters
AzureCosmosDBChatExtensionParameters
ElasticsearchChatExtensionParameters
PineconeChatExtensionParameters
- Vectorization source types have a new
dimensions
property (optional int32)- Affected:
OnYourDataEndpointVectorizationSource
,OnYourDataDeploymentNameVectorizationSource
- Affected:
AzureSearchChatExtensionParameters
now supportsOnYourDataAccessTokenAuthenticationOptions
in its namedauthentication
fieldOnYourDataEndpointVectorizationSource
now supportsOnYourDataAccessTokenAuthenticationOptions
for its namedauthentication
field.- Added new class
OnYourDataVectorSearchAuthenticationType
,OnYourDataVectorSearchAuthenticationOptions
,
OnYourDataVectorSearchApiKeyAuthenticationOptions
,OnYourDataVectorSearchAccessTokenAuthenticationOptions
for the
vector search authentication options. - The response extension type
AzureChatExtensionsMessageContext
has a newall_retrieved_documents
field, which is an optional array of the newretrievedDocument
type defined earlier.
Breaking Changes
- Replaced Jackson Databind annotations with
azure-json
functionality for OpenAI service models. - [AOAI] Added a new class
ContentFilterDetailedResults
to represent detailed content filter results, which replaces the
customBlocklists
response property type,List<ContentFilterBlocklistIdResult>
in
ContentFilterResultDetailsForPrompt
andContentFilterResultsForChoice
class. - [AOAI] Replaced
OnYourDataAuthenticationOptions
withOnYourDataVectorSearchAuthenticationOptions
in theOnYourDataEndpointVectorizationSource
class.
Currently,OnYourDataEndpointVectorizationSource
only supportsOnYourDataApiKeyAuthenticationOptions
andOnYourDataAccessTokenAuthenticationOptions
as authentication options.
Other Changes
Dependency Updates
- Upgraded
azure-core
to version1.49.1
. - Upgraded
azure-core-http-netty
to version1.15.1
.