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 forFileListResponse
where we simply returnList<OpenAIFile>
. -
If you are using
listFilesWithResponse
and need to manually deserialize theBinaryData
in the response, you can still usePageableList<T>
like so:
client.listFilesWithResponse(requestOptions)
.getValue()
.toObject(new TypeReference<PageableList<OpenAIFile>>() {})
.getData();
Other Changes
- On
uploadFile
method inAssistantsClient
andAssistantsAsyncClient
, it is required to set the "filename" of the file, viasetFilename
method inFileDetails
class. The double quote character"
, the newline charactor0x0A
, the return charactor0x0D
in "filename" would be escaped by the client library.