Skip to content

Commit 323ea20

Browse files
committed
Merge branch 'create-server' of github.com:modal-labs/modal-client into create-server
2 parents 3fad467 + 70021f9 commit 323ea20

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

modal_proto/api.proto

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,6 +2680,19 @@ message RateLimit {
26802680
RateLimitInterval interval = 2;
26812681
}
26822682

2683+
message ResourceInfo {
2684+
message ResourceValue {
2685+
uint32 value = 1;
2686+
bool is_default = 2;
2687+
}
2688+
ResourceValue memory_mb = 1; // MiB
2689+
ResourceValue milli_cpu = 2; // milli CPU cores
2690+
string gpu_type = 3;
2691+
uint32 memory_mb_max = 4 ; // MiB
2692+
uint32 ephemeral_disk_mb = 5; // MiB
2693+
uint32 milli_cpu_max = 6; // milli CPU cores
2694+
}
2695+
26832696
message Resources {
26842697
uint32 memory_mb = 2; // MiB
26852698
uint32 milli_cpu = 3; // milli CPU cores
@@ -2888,9 +2901,12 @@ message SandboxInfo {
28882901
repeated SandboxTag tags = 6; // TODO: Not yet exposed in client library.
28892902
string name = 7;
28902903
string image_id = 8;
2904+
ResourceInfo resource_info = 9;
2905+
repeated string regions = 10;
28912906
reserved 2; // modal.client.Sandbox definition
28922907
}
28932908

2909+
28942910
message SandboxListRequest {
28952911
string app_id = 1;
28962912
double before_timestamp = 2;

modal_version/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Copyright Modal Labs 2025
22
"""Supplies the current version of the modal client library."""
33

4-
__version__ = "1.3.1.dev8"
4+
__version__ = "1.3.1.dev9"

0 commit comments

Comments
 (0)