Package com.openai.services.async
Interface FileServiceAsync
-
- All Implemented Interfaces:
public interface FileServiceAsync
-
-
Method Summary
Modifier and Type Method Description abstract CompletableFuture<FileObject>
retrieve(FileRetrieveParams params, RequestOptions requestOptions)
Returns information about a specific file. abstract CompletableFuture<FileObject>
retrieve(FileRetrieveParams params)
Returns information about a specific file. abstract CompletableFuture<FileListPageAsync>
list(FileListParams params, RequestOptions requestOptions)
Returns a list of files. abstract CompletableFuture<FileListPageAsync>
list(FileListParams params)
Returns a list of files. abstract CompletableFuture<FileDeleted>
delete(FileDeleteParams params, RequestOptions requestOptions)
Delete a file. abstract CompletableFuture<FileDeleted>
delete(FileDeleteParams params)
Delete a file. abstract CompletableFuture<HttpResponse>
content(FileContentParams params, RequestOptions requestOptions)
Returns the contents of the specified file. abstract CompletableFuture<HttpResponse>
content(FileContentParams params)
Returns the contents of the specified file. -
-
Method Detail
-
retrieve
abstract CompletableFuture<FileObject> retrieve(FileRetrieveParams params, RequestOptions requestOptions)
Returns information about a specific file.
-
retrieve
abstract CompletableFuture<FileObject> retrieve(FileRetrieveParams params)
Returns information about a specific file.
-
list
abstract CompletableFuture<FileListPageAsync> list(FileListParams params, RequestOptions requestOptions)
Returns a list of files.
-
list
abstract CompletableFuture<FileListPageAsync> list(FileListParams params)
Returns a list of files.
-
delete
abstract CompletableFuture<FileDeleted> delete(FileDeleteParams params, RequestOptions requestOptions)
Delete a file.
-
delete
abstract CompletableFuture<FileDeleted> delete(FileDeleteParams params)
Delete a file.
-
content
abstract CompletableFuture<HttpResponse> content(FileContentParams params, RequestOptions requestOptions)
Returns the contents of the specified file.
-
content
abstract CompletableFuture<HttpResponse> content(FileContentParams params)
Returns the contents of the specified file.
-
-
-
-