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(
316316 workers_min : int = 0 ,
317317 workers_max : int = 3 ,
318318 flashboot = False ,
319- allowed_cuda_versions : list = None ,
319+ allowed_cuda_versions : str = None ,
320320 gpu_count : int = 1 ,
321321):
322322 """
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def generate_endpoint_mutation(
1515 workers_min : int = 0 ,
1616 workers_max : int = 3 ,
1717 flashboot = False ,
18- allowed_cuda_versions : list = None ,
18+ allowed_cuda_versions : str = None ,
1919 gpu_count : int = None ,
2020):
2121 """Generate a string for a GraphQL mutation to create a new endpoint."""
@@ -47,8 +47,7 @@ def generate_endpoint_mutation(
4747 input_fields .append (f"workersMax: { workers_max } " )
4848
4949 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 } " )
5251
5352 if gpu_count is not None :
5453 input_fields .append (f"gpuCount: { gpu_count } " )
You can’t perform that action at this time.
0 commit comments