-
-
Notifications
You must be signed in to change notification settings - Fork 49
ModelPermission
MarcoDotIO edited this page Dec 5, 2022
·
1 revision
Struct containing permissions associated with the model.
public struct ModelPermission: Codable, Identifiable Codable, Identifiable
The ID of the permission.
public let id: StringThe OpenAIObject object type of the permission.
public let object: OpenAIObjectThe creation date of the permission.
public let created: IntDoes the model allow users to create an engine based on itself?
public let allowCreateEngine: BoolDoes the model allow sampling?
public let allowSampling: BoolDoes the model allow the use of logprobs?
public let allowLogprobs: BoolDoes the model allow search indices?
public let allowSearchIndices: BoolIs the model viewable?
public let allowView: BoolDoes the model allow itself to be Fine-tuned?
public let allowFineTuning: BoolThe organization associated with the permission.
public let organization: StringThe group associated with the permission.
public let group: String?Unknown parameter. TODO: Figure out what the parameter means.
public let isBlocking: BoolGenerated 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:)