ACMOAIFilesManager
public class ACMOAIFilesManager : BaseAPIManager
Files manager for calling files endpoints of Open AI
-
Lists files based on giving parameters and returns closure
Declaration
Swift
func list(onSuccess: FilesCallback.List, onError: ACMGenericCallbacks.ErrorCallback)
-
Upload files based on giving parameters and returns closure
Declaration
Swift
func upload(request: ACMOAIFilesRequest.Upload, onSuccess: FilesCallback.Upload, onError: ACMGenericCallbacks.ErrorCallback)
Parameters
request
ACMOAIFilesRequest.Upload
Model of possible requests -
Delete files based on giving parameters and returns closure
Declaration
Swift
func delete(request: ACMOAIFilesRequest.Delete, onSuccess: FilesCallback.Delete, onError: ACMGenericCallbacks.ErrorCallback)
Parameters
request
ACMOAIFilesRequest.Delete
Model of possible requests -
Retrieves files based on giving parameters and returns closure
Declaration
Swift
func retrieve(request: ACMOAIFilesRequest.Retrieve, onSuccess: FilesCallback.Retrieve, onError: ACMGenericCallbacks.ErrorCallback)
Parameters
request
ACMOAIFilesRequest.Retrieve
Model of possible requests -
Retrieves the contents of files based on giving parameters and returns closure
Declaration
Swift
func retrieveContent(request: ACMOAIFilesRequest.RetrieveContent, onSuccess: FilesCallback.RetrieveContent, onError: ACMGenericCallbacks.ErrorCallback)
Parameters
request
ACMOAIFilesRequest.RetrieveContent
Model of possible requests