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: String
The unique identifier for the permission entry.
object: String
The object type, usually "model_permission"
.
created: u64
Unix timestamp (in seconds) when this permission was created.
allow_create_engine: bool
Indicates if the user can create fine-tuned engines from this model.
allow_sampling: bool
Indicates if the user is permitted to sample from the model.
allow_logprobs: bool
Indicates if the user can request log probabilities.
allow_search_indices: bool
Indicates if the user can access search indices.
allow_view: bool
Indicates if the user can view the model details.
allow_fine_tuning: bool
Indicates if the user can fine-tune the model.
organization: String
The organization this permission applies to.
group: Option<String>
Group identifier, if applicable.
is_blocking: bool
Whether this permission is blocking some other action or usage.