File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ def create_endpoint(
316
316
workers_min : int = 0 ,
317
317
workers_max : int = 3 ,
318
318
flashboot = False ,
319
- allowed_cuda_versions : list = None ,
319
+ allowed_cuda_versions : str = None ,
320
320
gpu_count : int = 1 ,
321
321
):
322
322
"""
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def generate_endpoint_mutation(
15
15
workers_min : int = 0 ,
16
16
workers_max : int = 3 ,
17
17
flashboot = False ,
18
- allowed_cuda_versions : list = None ,
18
+ allowed_cuda_versions : str = None ,
19
19
gpu_count : int = None ,
20
20
):
21
21
"""Generate a string for a GraphQL mutation to create a new endpoint."""
@@ -47,8 +47,7 @@ def generate_endpoint_mutation(
47
47
input_fields .append (f"workersMax: { workers_max } " )
48
48
49
49
if allowed_cuda_versions :
50
- cuda_versions = ", " .join (f'"{ v } "' for v in allowed_cuda_versions )
51
- input_fields .append (f"allowedCudaVersions: [{ cuda_versions } ]" )
50
+ input_fields .append (f"allowedCudaVersions: { allowed_cuda_versions } " )
52
51
53
52
if gpu_count is not None :
54
53
input_fields .append (f"gpuCount: { gpu_count } " )
You can’t perform that action at this time.
0 commit comments