FilesService class

Constructors

FilesService({required String baseUrl, required bool secure})

Properties

baseUrl String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secure bool
final

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.

Operators

operator ==(Object other) bool
The equality operator.
inherited