azure-sdk-for-java
azure-sdk-for-java copied to clipboard
[OpenAI] Support Service API version 2024-08-01-preview
- [x] Added support for service API version,
2024-08-01-preview
. 41928 - [x] Added new constructors to take
BinaryData
orList<ChatMessageContentItem>
as input type forcontent
inChatRequestAssistantMessage
,ChatRequestSystemMessage
,ChatRequestToolMessage
classes. 41928 - Added support for MongoDB chat extension. New classes
MongoDBChatExtensionConfiguration
,MongoDBChatExtensionParameters
, andMongoDBChatExtensionParametersFieldsMapping
are added to support MongoDB chat extension. [Don't have a resource to test] - [x] Added
rerank_score
property inAzureChatExtensionDataSourceResponseCitation
class to support re-rank score. - [x] Added
refusal
property inChatChoiceLogProbabilityInfo
,ChatMessageContentItem
,ChatResponseMessage
classes and a new type of content item classChatMessageRefusalContentItem
to support refusal. 42061-
refusal
is only works with Structured output.
-
- [x] Added
json_schema
property inChatCompletionsResponseFormat
class to support JSON schema. 42061 - [x] Test structured output in function calling tool call. 42061
- 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. - [x] createUpload feature support.
Breaking Changes
- Replaced
FunctionDefintion
byChatCompletionsFunctionToolDefinitionFunction
inChatCompletionsFunctionToolDefinition
class.FunctionDefintion
only works forfunctions
but nottools
, which is deprecated. - Removed
azure_ml_index
fromAzureChatExtensionConfiguration
class, and its response modelsAzureMachineLearningIndexConfiguration
andAzureMachineLearningIndexChatExtensionParameters
. - Removed
role_information
fromAzureSearchChatExtensionParameters
,ElasticsearchChatExtensionParameters
andPineconeChatExtensionParameters
classes.
close: https://github.com/Azure/azure-sdk-for-java/issues/41767