pub struct AiConfig {
pub providers: Option<HashMap<String, AiProviderConfig>>,
pub default_model: Option<Box<AiProviderModel>>,
pub metadata_model: Option<Box<AiProviderModel>>,
pub code_completion_model: Option<Box<AiProviderModel>>,
pub custom_prompts: Option<HashMap<String, String>>,
pub max_tokens_per_model: Option<HashMap<String, i32>>,
pub free_tier: Option<Box<FreeTierInfo>>,
pub model_pricing: Option<HashMap<String, ModelPriceOverride>>,
pub copilot_disabled: Option<bool>,
pub sessions_storage_disabled: Option<bool>,
pub sessions_retention_days: Option<i32>,
}Fields§
§providers: Option<HashMap<String, AiProviderConfig>>§default_model: Option<Box<AiProviderModel>>§metadata_model: Option<Box<AiProviderModel>>§code_completion_model: Option<Box<AiProviderModel>>§custom_prompts: Option<HashMap<String, String>>§max_tokens_per_model: Option<HashMap<String, i32>>§free_tier: Option<Box<FreeTierInfo>>§model_pricing: Option<HashMap<String, ModelPriceOverride>>§copilot_disabled: Option<bool>Hides the Windmill AI assistant (chat, sessions, code generation, completion, fixes) from the workspace UI. Read from the workspace’s own settings even when the providers served fall back to the instance config. AI agent steps and the AI sandbox in flows are unaffected.
sessions_storage_disabled: Option<bool>Stops browsers from backing their AI sessions up to the workspace’s object storage. Read from the workspace’s own settings like copilot_disabled.
sessions_retention_days: Option<i32>The server deletes the backup of a session no push has reached for this many days. Unset keeps backups until the user deletes the session. Read from the workspace’s own settings like copilot_disabled.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AiConfig
impl<'de> Deserialize<'de> for AiConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AiConfig
Auto Trait Implementations§
impl Freeze for AiConfig
impl RefUnwindSafe for AiConfig
impl Send for AiConfig
impl Sync for AiConfig
impl Unpin for AiConfig
impl UnsafeUnpin for AiConfig
impl UnwindSafe for AiConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more