1.0.0-beta.12 (2024-04-01)
Features Added
- Adds a new property
logprobs
inChatChoice
to support log probabilities for this chat choice - Adds new properties
logprobs
andtopLogprobs
inChatCompletionsOptions
class to support log probabilities for chat completions - Adds
dimensions
inGetEmbeddingsOptions
.
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
andpromptFilterResults
properties
Breaking Changes
AzureChatExtensionConfiguration
,OnYourDataAuthenticationOptions
,OnYourDataVectorizationSource
,OnYourDataVectorizationSourceType
,ChatCompletionsNamedToolSelection
,ChatCompletionsToolDefinition
,ChatCompletionsToolCall
,ChatMessageContentItem
,ChatRequestMessage
,ChatFinishDetails
are renamed withUnion
postfix.AzureCognitiveSearchQueryType
,ChatMessageImageDetailLevel
,ElasticsearchQueryType
,FunctionCallPreset
,ImageGenerationQuality
,ImageGenerationResponseFormat
,ImageSize
,ImageGenerationStyle
,OnYourDataAuthenticationType
,OnYourDataVectorizationSourceType
union types no longer have fixed values.prompFilterResults
property inChatCompletions
,prompFilterResults
property inChoice
,toolCalls
inChatResponseMessage
are now optional
Changes to "bring your own data" features:
- Introduces a new type:
AzureChatExtensionDataSourceResponseCitation
- For
AzureChatExtensionsMessageContext
, replacedmessages
property withcitations
and addedintent
as a string - Rename
AzureCognitiveSearch
toAzureSearch
embeddingDependency
is a required property forAzureCosmosDBChatExtensionConfiguration
- All extension configuration
type
properties are changed into snake casing. For example, typeAzureCosmosDB
is changed intoazure_cosmos_db
inAzureCosmosDBChatExtensionConfiguration
- All authentication
type
properties are changed into snake casing. For example, typeConnectionString
is changed intoconnection_string
inOnYourDataConnectionStringAuthenticationOptions
- New properties are added to
AzureCosmosDBFieldMappingOptions
:contentFields
,contentFieldsSeparator
,filepathField
,titleField
, andurlField
. - Adds additional support for different authentication options, including access token and encoded API key authentication
embeddingDependency
is required inPineconeChatExtensionConfiguration
contentField
is required inPineconeFieldMappingOptions
Bugs Fixed
- Fix a bug where
ChatCompletionsFunctionToolCall
did not expose theindex
property for the streaming mode.