diff --git a/packages/gridproxy_client/src/builders/nodes.ts b/packages/gridproxy_client/src/builders/nodes.ts index 75dd7830a1..0b0baa3daf 100644 --- a/packages/gridproxy_client/src/builders/nodes.ts +++ b/packages/gridproxy_client/src/builders/nodes.ts @@ -72,6 +72,7 @@ export interface NodesQuery { healthy: boolean; sortBy: SortBy; sortOrder: SortOrder; + numGpu: number; } const NODES_MAPPER: BuilderMapper = { @@ -114,6 +115,7 @@ const NODES_MAPPER: BuilderMapper = { healthy: "healthy", sortBy: "sort_by", sortOrder: "sort_order", + numGpu: "num_gpu", }; const NODES_VALIDATOR: BuilderValidator = { @@ -165,6 +167,7 @@ const NODES_VALIDATOR: BuilderValidator = { healthy: assertBoolean, sortBy: assertString, sortOrder: assertString, + numGpu: assertInt, }; export class NodesBuilder extends AbstractBuilder { diff --git a/packages/playground/src/views/nodes.vue b/packages/playground/src/views/nodes.vue index f189ea9834..9136c65238 100644 --- a/packages/playground/src/views/nodes.vue +++ b/packages/playground/src/views/nodes.vue @@ -256,6 +256,28 @@ + + + +