pub struct ModelPermission {
pub id: String,
pub object: String,
pub created: u64,
pub allow_create_engine: bool,
pub allow_sampling: bool,
pub allow_logprobs: bool,
pub allow_search_indices: bool,
pub allow_view: bool,
pub allow_fine_tuning: bool,
pub organization: String,
pub group: Option<String>,
pub is_blocking: bool,
}Expand description
Describes permissions for a model.
Each ModelInfo includes a vector of these to indicate usage rights, rate limit policies, etc.
This may be absent in some model responses.
Fields§
§id: StringThe unique identifier for the permission entry.
object: StringThe object type, usually "model_permission".
created: u64Unix timestamp (in seconds) when this permission was created.
allow_create_engine: boolIndicates if the user can create fine-tuned engines from this model.
allow_sampling: boolIndicates if the user is permitted to sample from the model.
allow_logprobs: boolIndicates if the user can request log probabilities.
allow_search_indices: boolIndicates if the user can access search indices.
allow_view: boolIndicates if the user can view the model details.
allow_fine_tuning: boolIndicates if the user can fine-tune the model.
organization: StringThe organization this permission applies to.
group: Option<String>Group identifier, if applicable.
is_blocking: boolWhether this permission is blocking some other action or usage.