pub struct ModelSetAllowedModelsRequest {
pub allowed_models: Option<Vec<String>>,
}Expand description
Host-supplied exact model selection IDs to allow for this running session. CAPI IDs are intersected with repository .github/allowed_models.txt policy; provider-qualified IDs remain exempt from repository-only policy but are restricted by this host list. Omit or pass null to clear the host restriction; an explicit empty or disjoint list is rejected. Validation and pre-selection fallback failures preserve the previous restriction. Failures after a fallback selection commits retain the new restriction and selected model; callers should inspect current session state after such an error.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§allowed_models: Option<Vec<String>>Exact model IDs to permit, or null to clear the host restriction.
Trait Implementations§
Source§impl Clone for ModelSetAllowedModelsRequest
impl Clone for ModelSetAllowedModelsRequest
Source§fn clone(&self) -> ModelSetAllowedModelsRequest
fn clone(&self) -> ModelSetAllowedModelsRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more