github Azure/azure-sdk-for-js @azure/openai_1.0.0-beta.12

latest releases: @azure/template_1.0.12-beta.4312721, @azure/template_1.0.12-beta.4312632, @azure/template_1.0.12-beta.4311809...
pre-release7 months ago

1.0.0-beta.12 (2024-04-01)

Features Added

  • Adds a new property logprobs in ChatChoice to support log probabilities for this chat choice
  • Adds new properties logprobs and topLogprobs in ChatCompletionsOptions class to support log probabilities for chat completions
  • Adds dimensions in GetEmbeddingsOptions.
    when using Azure OpenAI, specifies the input type to use for embedding search.
  • Updates the default service API version to 2024-03-01-preview
  • Returns content filter results and prompt filter results for image generations through contentFilterResults and promptFilterResults properties

Breaking Changes

  • AzureChatExtensionConfiguration, OnYourDataAuthenticationOptions, OnYourDataVectorizationSource, OnYourDataVectorizationSourceType, ChatCompletionsNamedToolSelection, ChatCompletionsToolDefinition, ChatCompletionsToolCall, ChatMessageContentItem, ChatRequestMessage, ChatFinishDetails are renamed with Union postfix.
  • AzureCognitiveSearchQueryType, ChatMessageImageDetailLevel, ElasticsearchQueryType, FunctionCallPreset, ImageGenerationQuality, ImageGenerationResponseFormat, ImageSize, ImageGenerationStyle, OnYourDataAuthenticationType, OnYourDataVectorizationSourceType union types no longer have fixed values.
  • prompFilterResults property in ChatCompletions, prompFilterResults property in Choice, toolCalls in ChatResponseMessage are now optional

Changes to "bring your own data" features:

  • Introduces a new type: AzureChatExtensionDataSourceResponseCitation
  • For AzureChatExtensionsMessageContext, replaced messages property with citations and added intent as a string
  • Rename AzureCognitiveSearch to AzureSearch
  • embeddingDependency is a required property for AzureCosmosDBChatExtensionConfiguration
  • All extension configuration type properties are changed into snake casing. For example, type AzureCosmosDB is changed into azure_cosmos_dbin AzureCosmosDBChatExtensionConfiguration
  • All authentication type properties are changed into snake casing. For example, type ConnectionString is changed into connection_stringin OnYourDataConnectionStringAuthenticationOptions
  • New properties are added to AzureCosmosDBFieldMappingOptions: contentFields, contentFieldsSeparator, filepathField, titleField, and urlField.
  • Adds additional support for different authentication options, including access token and encoded API key authentication
  • embeddingDependency is required in PineconeChatExtensionConfiguration
  • contentField is required in PineconeFieldMappingOptions

Bugs Fixed

  • Fix a bug where ChatCompletionsFunctionToolCall did not expose the index property for the streaming mode.

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

NewReleases is sending notifications on new releases.