1.0.0-beta.7 (2024-03-04)
Features Added
- Text-to-speech using OpenAI TTS models is now supported. See OpenAI's API reference
or the Azure OpenAI quickstart
for detailed overview and background information. The new methodgenerateSpeechFromText
exposes this capability on
OpenAIClient
andOpenAIAsyncClient
. Text-to-speech converts text into lifelike spoken audio in a chosen voice, together with other optional
configurations. This method works for both Azure OpenAI and non-Azureapi.openai.com
client configurations. - Added two new authentication options,
OnYourDataEncodedApiKeyAuthenticationOptions
andOnYourDataAccessTokenAuthenticationOptions
to support the new authentication mechanism for "On Your Data" feature.
Breaking Changes
- Introduced a new type
AzureChatExtensionDataSourceResponseCitation
for a more structured representation of citation data. - Correspondingly, updated
AzureChatExtensionsMessageContext
:- Replaced
messages
withcitations
of typeAzureChatExtensionDataSourceResponseCitation
. - Added
intent
as a string type.
- Replaced
- Renamed "AzureCognitiveSearch" to "AzureSearch":
AzureCognitiveSearchChatExtensionConfiguration
is nowAzureSearchChatExtensionConfiguration
.AzureCognitiveSearchIndexFieldMappingOptions
is nowAzureSearchIndexFieldMappingOptions
.AzureCognitiveSearchQueryType
is nowAzureSearchQueryType
.
- Replaced
String
propertyname
byChatCompletionsFunctionToolSelection
propertyfunction
inChatCompletionsNamedFunctionToolSelection
- Made
embeddingDependency
as a required parameter inAzureCosmosDBChatExtensionParameters
andPineconeChatExtensionParameters
class, and removed setter method. - Removed
vectorFields
andimageVectorFields
fromPineconeFieldMappingOptions
class, and madecontentField
as required parameter. - Removed
getAudioTranscriptionAsPlainTextWithResponse
andgetAudioTranslationAsPlainTextWithResponse
methods fromOpenAIClient
andOpenAIAsyncClient
classes. - Made
ImageGeneration
constructor as private. - Made
ImageGenerationData
constructor as private and removed setter methods.
Bugs Fixed
- Fixed
ChatRequestUserMessage
deserialization issue. #38183
Other Changes
- Dropped service API version support for
2023-08-01-preview
,2023-09-01-preview
and2023-12-01-preview
. - Made the
getContent
a public method inChatRequestUserMessage
class. (#38805) - Added a new property
logprobs
inChatChoice
class to support log probabilities for this chat choice. - Added new properties
logprobs
andtopLogprobs
inChatCompletionsOptions
class to support log probabilities for chat completions. - Added a new property
inputType
inEmbeddingsOptions
class to support embeddings for different input types
when using Azure OpenAI, specifies the input type to use for embedding search. - Added more properties to
AzureCosmosDBFieldMappingOptions
class to support more field mapping options, including
titleField
,urlField
,filepathField
,contentFields
, andcontentFieldsSeparator
. MadecontentField
as required parameter. - Added new properties
ImageGenerationContentFilterResults contentFilterResults
andImageGenerationPromptFilterResults promptFilterResults
inImageGenerationData
class to support filtering results. - Added new property
suffix
inCompletionsOptions
class to support suffix for completions.