-
-
Notifications
You must be signed in to change notification settings - Fork 46
ImageData
MarcoDotIO edited this page Dec 5, 2022
·
1 revision
The image type of the image response data.
public enum ImageData: Codable
Codable
public init(from decoder: Decoder) throws
The image is stored as a URL string.
case url(String)
The image is stored as a Base64 binary.
case b64Json(String)
The image itself.
public var image: String
Generated at 2023-03-04T02:43:47+0000 using swift-doc 1.0.0-rc.1.
Types
- ChatChoice
- ChatMessage
- ChatParameters
- ChatResponse
- ChatRole
- Choice
- CompletionParameters
- CompletionResponse
- Configuration
- ContentPolicyCategories
- ContentPolicyCategoryScore
- ContentPolicyModels
- ContentPolicyParameters
- ContentPolicyResponse
- ContentPolicyResult
- CreateFineTuneParameters
- DeleteObject
- EditParameters
- EditResponse
- EmbeddingsData
- EmbeddingsParameters
- EmbeddingsResponse
- EmbeddingsUsage
- File
- FileStatus
- FineTune
- FineTuneEvent
- FineTuneEventInfo
- FineTuneEventsResponse
- FineTuneHyperparamters
- FineTuneStatus
- FineTuneTraining
- FormData
- HTTPMethod
- ImageData
- ImageEditParameters
- ImageParameters
- ImageResolutions
- ImageResponse
- ImageVariationParameters
- ListFilesResponse
- ListFineTuneResponse
- ListModelResponse
- Model
- ModelPermission
- OpenAIError
- OpenAIErrorMessage
- OpenAIErrorResponse
- OpenAIObject
- ResponseFormat
- UploadFileParameters
- Usage
Global Functions
- cancelFineTune(fineTune:)
- checkContentPolicy(parameters:)
- createEmbeddings(parameters:)
- createFineTune(parameters:)
- createImage(parameters:)
- decodeBase64Image(_:)
- decodeUrl(_:with:apiKey:body:method:bodyRequired:formSubmission:)
- deleteFile(fileId:)
- deleteFineTuneModel(model:)
- generateChatCompletion(parameters:)
- generateCompletion(parameters:)
- generateEdit(parameters:)
- generateImageEdits(parameters:)
- generateImageVariations(parameters:)
- listFiles()
- listFineTuneEvents(fineTune:)
- listFineTunes()
- listModels()
- retrieveFile(fileId:)
- retrieveFileContent(fileId:)
- retrieveFineTune(fineTune:)
- retrieveJsonLine(_:with:apiKey:)
- retrieveModel(modelId:)
- uploadFile(parameters:)