Class FileServiceAsyncImpl
-
- All Implemented Interfaces:
-
com.openai.services.async.FileServiceAsync
public final class FileServiceAsyncImpl implements FileServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
FileServiceAsyncImpl.WithRawResponseImpl
-
Method Summary
Modifier and Type Method Description FileServiceAsync.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. CompletableFuture<FileObject>
create(FileCreateParams params, RequestOptions requestOptions)
Upload a file that can be used across various endpoints. CompletableFuture<FileObject>
retrieve(FileRetrieveParams params, RequestOptions requestOptions)
Returns information about a specific file. CompletableFuture<FileListPageAsync>
list(FileListParams params, RequestOptions requestOptions)
Returns a list of files. CompletableFuture<FileDeleted>
delete(FileDeleteParams params, RequestOptions requestOptions)
Delete a file. CompletableFuture<HttpResponse>
content(FileContentParams params, RequestOptions requestOptions)
Returns the contents of the specified file. -
-
Method Detail
-
withRawResponse
FileServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
create
CompletableFuture<FileObject> create(FileCreateParams params, RequestOptions requestOptions)
Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.
The Assistants API supports files up to 2 million tokens and of specific file types. See the Assistants Tools guide for details.
The Fine-tuning API only supports
.jsonl
files. The input also has certain required formats for fine-tuning chat or completions models.The Batch API only supports
.jsonl
files up to 200 MB in size. The input also has a specific required format.Please contact us if you need to increase these storage limits.
-
retrieve
CompletableFuture<FileObject> retrieve(FileRetrieveParams params, RequestOptions requestOptions)
Returns information about a specific file.
-
list
CompletableFuture<FileListPageAsync> list(FileListParams params, RequestOptions requestOptions)
Returns a list of files.
-
delete
CompletableFuture<FileDeleted> delete(FileDeleteParams params, RequestOptions requestOptions)
Delete a file.
-
content
CompletableFuture<HttpResponse> content(FileContentParams params, RequestOptions requestOptions)
Returns the contents of the specified file.
-
-
-
-