github Azure/azure-sdk-for-java azure-ai-openai-assistants_1.0.0-beta.2

latest releases: azure-communication-email_1.1.0-beta.1, azure-resourcemanager-batch_2.0.0, azure-resourcemanager-webpubsub_1.1.0...
pre-release7 months ago

1.0.0-beta.2 (2024-02-13)

Breaking Changes

  • The following class have been removed:

    • FileListResponse
    • OpenAIPageableListOfAssistant
    • OpenAIPageableListOfAssistantFile
    • OpenAIPageableListOfMessageFile
    • OpenAIPageableListOfRunStep
    • OpenAIPageableListOfThreadMessage
    • OpenAIPageableListOfThreadRun
  • We've introduced PageableList<T> these classes were used, except for FileListResponse where we simply return List<OpenAIFile>.

  • If you are using listFilesWithResponse and need to manually deserialize the BinaryData in the response, you can still use PageableList<T> like so:

client.listFilesWithResponse(requestOptions)
    .getValue()
    .toObject(new TypeReference<PageableList<OpenAIFile>>() {})
    .getData();

Other Changes

  • On uploadFile method in AssistantsClient and AssistantsAsyncClient, it is required to set the "filename" of the file, via setFilename method in FileDetails class. The double quote character ", the newline charactor 0x0A, the return charactor 0x0D in "filename" would be escaped by the client library.

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

NewReleases is sending notifications on new releases.