Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion runpod/api/ctl_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def create_endpoint(
workers_min: int = 0,
workers_max: int = 3,
flashboot=False,
allowed_cuda_versions: list = None,
allowed_cuda_versions: str = None,
gpu_count: int = 1,
):
"""
Expand Down
5 changes: 2 additions & 3 deletions runpod/api/mutations/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def generate_endpoint_mutation(
workers_min: int = 0,
workers_max: int = 3,
flashboot=False,
allowed_cuda_versions: list = None,
allowed_cuda_versions: str = None,
gpu_count: int = None,
):
"""Generate a string for a GraphQL mutation to create a new endpoint."""
Expand Down Expand Up @@ -47,8 +47,7 @@ def generate_endpoint_mutation(
input_fields.append(f"workersMax: {workers_max}")

if allowed_cuda_versions:
cuda_versions = ", ".join(f'"{v}"' for v in allowed_cuda_versions)
input_fields.append(f"allowedCudaVersions: [{cuda_versions}]")
input_fields.append(f"allowedCudaVersions: {allowed_cuda_versions}")

if gpu_count is not None:
input_fields.append(f"gpuCount: {gpu_count}")
Expand Down
Loading