Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions agentrun/sandbox/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Loading