diff --git a/agentrun/sandbox/model.py b/agentrun/sandbox/model.py index 8301396..c662771 100644 --- a/agentrun/sandbox/model.py +++ b/agentrun/sandbox/model.py @@ -337,19 +337,6 @@ def validate_template_constraints(self): f"the current disk size is {self.disk_size}" ) - if ( - self.template_type == TemplateType.CODE_INTERPRETER - or self.template_type == TemplateType.AIO - ): - if ( - self.network_configuration - and self.network_configuration.network_mode - == TemplateNetworkMode.PRIVATE - ): - raise ValueError( - "when template_type is CODE_INTERPRETER," - "network_mode cannot be PRIVATE" - ) return self