Skip to content

Commit

Permalink
openai assistants, hide the uploadFile overload of filename argument (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft committed Apr 26, 2024
1 parent 0082cf1 commit 5b4f728
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions sdk/openai/azure-ai-openai-assistants/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

### Breaking Changes

- Removed methods `uploadFile(FileDetails file, FilePurpose purpose, String filename)` from `AssistantsClient` and `AssistantsAsyncClient` classes. Use `uploadFile(FileDetails file, FilePurpose purpose)` method, and set "filename" via `setFilename` method in `FileDetails` class.

### Bugs Fixed

### Other Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3069,9 +3069,8 @@ public Mono<OpenAIFile> getFile(String fileId) {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return represents an assistant that can call the model and use tools on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<OpenAIFile> uploadFile(FileDetails file, FilePurpose purpose, String filename) {
Mono<OpenAIFile> uploadFile(FileDetails file, FilePurpose purpose, String filename) {
// Generated convenience method for uploadFileWithResponse
RequestOptions requestOptions = new RequestOptions();
UploadFileRequest requestObj = new UploadFileRequest(file, purpose).setFilename(filename);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3010,9 +3010,8 @@ public OpenAIFile getFile(String fileId) {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return represents an assistant that can call the model and use tools.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
public OpenAIFile uploadFile(FileDetails file, FilePurpose purpose, String filename) {
OpenAIFile uploadFile(FileDetails file, FilePurpose purpose, String filename) {
// Generated convenience method for uploadFileWithResponse
RequestOptions requestOptions = new RequestOptions();
UploadFileRequest requestObj = new UploadFileRequest(file, purpose).setFilename(filename);
Expand Down

0 comments on commit 5b4f728

Please sign in to comment.