github Azure/azure-sdk-for-java azure-ai-openai_1.0.0-beta.7

latest releases: azure-digitaltwins-core_1.4.0, azure-sdk-template-three_1.0.0-beta.4334260, azure-sdk-template-two_1.0.0-beta.4334260...
pre-release8 months ago

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 method generateSpeechFromText exposes this capability on
    OpenAIClient and OpenAIAsyncClient. 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-Azure api.openai.com client configurations.
  • Added two new authentication options, OnYourDataEncodedApiKeyAuthenticationOptions and OnYourDataAccessTokenAuthenticationOptions
    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 with citations of type AzureChatExtensionDataSourceResponseCitation.
    • Added intent as a string type.
  • Renamed "AzureCognitiveSearch" to "AzureSearch":
    • AzureCognitiveSearchChatExtensionConfiguration is now AzureSearchChatExtensionConfiguration.
    • AzureCognitiveSearchIndexFieldMappingOptions is now AzureSearchIndexFieldMappingOptions.
    • AzureCognitiveSearchQueryType is now AzureSearchQueryType.
  • Replaced String property name by ChatCompletionsFunctionToolSelection property function in ChatCompletionsNamedFunctionToolSelection
  • Made embeddingDependency as a required parameter in AzureCosmosDBChatExtensionParameters and PineconeChatExtensionParameters class, and removed setter method.
  • Removed vectorFields and imageVectorFields from PineconeFieldMappingOptions class, and made contentField as required parameter.
  • Removed getAudioTranscriptionAsPlainTextWithResponse and getAudioTranslationAsPlainTextWithResponse methods from OpenAIClient and OpenAIAsyncClient 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 and 2023-12-01-preview.
  • Made the getContent a public method in ChatRequestUserMessage class. (#38805)
  • Added a new property logprobs in ChatChoice class to support log probabilities for this chat choice.
  • Added new properties logprobs and topLogprobs in ChatCompletionsOptions class to support log probabilities for chat completions.
  • Added a new property inputType in EmbeddingsOptions 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, and contentFieldsSeparator. Made contentField as required parameter.
  • Added new properties ImageGenerationContentFilterResults contentFilterResults and ImageGenerationPromptFilterResults promptFilterResults
    in ImageGenerationData class to support filtering results.
  • Added new property suffix in CompletionsOptions class to support suffix for completions.

Don't miss a new azure-sdk-for-java release

NewReleases is sending notifications on new releases.