FilesService class
Methods
-
deleteFile({required String apiKey, required String organizationId, required String fileId})
→ Future<void>
-
Delete a file.
-
listFiles({required String apiKey, required String organizationId, required ListFilesRequest request})
→ Future<List<GptFile>>
-
Returns a list of files that belong to the user's organization.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
retrieveFile({required String apiKey, required String organizationId, required String fileId})
→ Future<GptFile>
-
Returns information about a specific file.
-
retrieveFileContent({required String apiKey, required String organizationId, required String fileId})
→ Future<Uint8List>
-
Returns the contents of the specified file.
-
toString()
→ String
-
A string representation of this object.
inherited
-
uploadFile({required String apiKey, required String organizationId, required CreateFileRequest request, required Uint8List fileBytes})
→ Future<GptFile>
-
Upload a file that can be used across various endpoints.
The size of all the files uploaded by one organization can be up to 100 GB.