Skip to content

ModelPermission

MarcoDotIO edited this page Dec 5, 2022 · 1 revision

ModelPermission

Struct containing permissions associated with the model.

public struct ModelPermission: Codable, Identifiable 

Inheritance

Codable, Identifiable

Properties

id

The ID of the permission.

public let id: String

object

The OpenAIObject object type of the permission.

public let object: OpenAIObject

created

The creation date of the permission.

public let created: Int

allowCreateEngine

Does the model allow users to create an engine based on itself?

public let allowCreateEngine: Bool

allowSampling

Does the model allow sampling?

public let allowSampling: Bool

allowLogprobs

Does the model allow the use of logprobs?

public let allowLogprobs: Bool

allowSearchIndices

Does the model allow search indices?

public let allowSearchIndices: Bool

allowView

Is the model viewable?

public let allowView: Bool

allowFineTuning

Does the model allow itself to be Fine-tuned?

public let allowFineTuning: Bool

organization

The organization associated with the permission.

public let organization: String

group

The group associated with the permission.

public let group: String?

isBlocking

Unknown parameter. TODO:​ Figure out what the parameter means.

public let isBlocking: Bool
Types
Global Functions

Clone this wiki locally