1.0.0-beta.12 (2024-10-22)
Features Added
- Added support for service API version
2024-08-01-preview
. - Structured Outputs can be enabled by setting the parameter
strict: true
in an API call with either a defined response format or function definitions.- Added
refusal
property inChatChoiceLogProbabilityInfo
,ChatMessageContentItem
,ChatResponseMessage
classes,
and a new type of content item classChatMessageRefusalContentItem
to support refusal.refusal
only works with structured output. - Added
json_schema
property inChatCompletionsResponseFormat
class to support JSON schema.
New classesChatCompletionsJsonSchemaResponseFormat
andChatCompletionsJsonSchemaResponseFormatJsonSchema
are added to support JSON schema response format.
- Added
- Added support for uploading large files in multiple parts. New client methods
createUpload
,addUploadPart
,
completeUpload
andcancelUpload
introduced inOpenAIClient
andOpenAIAsyncClient
classes. - Updated
ChatRequestMessages
derived classes,ChatRequestSystemMessage
content:String
orChatMessageTextContentItem[]
.ChatRequestAssistantMessage
content:String
,ChatMessageTextContentItem[]
,ChatMessageRefusalContentItem[]
ornull
.ChatRequestToolMessage
content:String
orChatMessageTextContentItem[]
.
- Added
rerank_score
property inAzureChatExtensionDataSourceResponseCitation
class to support re-rank score. - Added support for MongoDB chat extension. New classes
MongoDBChatExtensionConfiguration
,MongoDBChatExtensionParameters
,
andMongoDBChatExtensionParametersFieldsMapping
are added to support MongoDB chat extension. - Added
username_and_password
inOnYourDataAuthenticationOptions
class and an input option classOnYourDataUsernameAndPasswordAuthenticationOptions
to support username and password authentication. - Added
intergrated
property inOnYourDataVectorizationSource
class andOnYourDataVectorizationSourceType
to support integrated vectorization source.
Breaking Changes
- Replaced
FunctionDefintion
byChatCompletionsFunctionToolDefinitionFunction
inChatCompletionsFunctionToolDefinition
class.
FunctionDefintion
only works forfunctions
but nottools
, Thefunctions
is deprecated. - Removed
azure_ml_index
fromAzureChatExtensionConfiguration
class, and its response modelsAzureMachineLearningIndexConfiguration
andAzureMachineLearningIndexChatExtensionParameters
. - Removed
role_information
fromAzureSearchChatExtensionParameters
,ElasticsearchChatExtensionParameters
andPineconeChatExtensionParameters
classes.
Other Changes
- Upgraded
azure-core
to version1.53.0
. - Upgraded
azure-core-http-netty
to version1.15.5
.