azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

[OpenAI] Support Service API version 2024-08-01-preview

Open mssfang opened this issue 5 months ago • 2 comments

  • [x] Added support for service API version, 2024-08-01-preview. 41928
  • [x] Added new constructors to take BinaryData or List<ChatMessageContentItem> as input type for content in ChatRequestAssistantMessage, ChatRequestSystemMessage, ChatRequestToolMessage classes. 41928
  • Added support for MongoDB chat extension. New classes MongoDBChatExtensionConfiguration, MongoDBChatExtensionParameters, and MongoDBChatExtensionParametersFieldsMapping are added to support MongoDB chat extension. [Don't have a resource to test]
  • [x] Added rerank_score property in AzureChatExtensionDataSourceResponseCitation class to support re-rank score.
  • [x] Added refusal property in ChatChoiceLogProbabilityInfo, ChatMessageContentItem, ChatResponseMessage classes and a new type of content item class ChatMessageRefusalContentItem to support refusal. 42061
    • refusal is only works with Structured output.
  • [x] Added json_schema property in ChatCompletionsResponseFormat class to support JSON schema. 42061
  • [x] Test structured output in function calling tool call. 42061
  • Added username_and_password in OnYourDataAuthenticationOptions class and an input option classOnYourDataUsernameAndPasswordAuthenticationOptions to support username and password authentication.
  • Added intergrated property in OnYourDataVectorizationSource class and OnYourDataVectorizationSourceType to support integrated vectorization source.
  • [x] createUpload feature support.

Breaking Changes

  • Replaced FunctionDefintion by ChatCompletionsFunctionToolDefinitionFunction in ChatCompletionsFunctionToolDefinition class. FunctionDefintion only works for functions but not tools, which is deprecated.
  • Removed azure_ml_index from AzureChatExtensionConfiguration class, and its response models AzureMachineLearningIndexConfiguration and AzureMachineLearningIndexChatExtensionParameters.
  • Removed role_information from AzureSearchChatExtensionParameters, ElasticsearchChatExtensionParameters and PineconeChatExtensionParameters classes.

close: https://github.com/Azure/azure-sdk-for-java/issues/41767

mssfang avatar Sep 17 '24 23:09 mssfang