You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/openapi.yaml
+22-57Lines changed: 22 additions & 57 deletions
Original file line number
Diff line number
Diff line change
@@ -934,75 +934,40 @@ paths:
934
934
get:
935
935
tags: ["Hardware"]
936
936
summary: List available hardware configurations
937
-
description: Returns a list of available hardware configurations for deploying models. When a model parameter is provided, it returns only hardware configurations compatible with that model, including their current availability status.
937
+
description: >
938
+
Returns a list of available hardware configurations for deploying models.
939
+
When a model parameter is provided, it returns only hardware configurations compatible
940
+
with that model, including their current availability status.
938
941
operationId: listHardware
939
942
parameters:
940
943
- name: model
941
944
in: query
942
945
required: false
943
946
schema:
944
947
type: string
945
-
description: Filter hardware configurations by model compatibility
948
+
description: >
949
+
Filter hardware configurations by model compatibility. When provided,
950
+
the response includes availability status for each compatible configuration.
946
951
example: meta-llama/Llama-3-70b-chat-hf
947
952
responses:
948
953
"200":
949
954
description: "List of available hardware configurations"
950
955
content:
951
956
application/json:
952
957
schema:
953
-
oneOf:
954
-
- type: object
955
-
description: Response when no model filter is provided
956
-
required:
957
-
- object
958
-
- data
959
-
properties:
960
-
object:
961
-
type: string
962
-
enum:
963
-
- list
964
-
data:
965
-
type: array
966
-
items:
967
-
allOf:
968
-
- $ref: "#/components/schemas/HardwareWithStatus"
969
-
- type: object
970
-
properties:
971
-
availability:
972
-
not: {}
973
-
- type: object
974
-
description: Response when model filter is provided
975
-
required:
976
-
- object
977
-
- data
978
-
properties:
979
-
object:
980
-
type: string
981
-
enum:
982
-
- list
983
-
data:
984
-
type: array
985
-
items:
986
-
allOf:
987
-
- $ref: "#/components/schemas/HardwareWithStatus"
988
-
- type: object
989
-
required:
990
-
- availability
991
-
example:
992
-
object: "list"
958
+
type: object
959
+
required:
960
+
- object
961
+
- data
962
+
properties:
963
+
object:
964
+
type: string
965
+
enum:
966
+
- list
993
967
data:
994
-
- object: "hardware"
995
-
name: "2x_nvidia_a100_80gb_sxm"
996
-
pricing:
997
-
input: 0
998
-
output: 0
999
-
cents_per_minute: 5.42
1000
-
specs:
1001
-
gpu_type: "a100-80gb"
1002
-
gpu_link: "sxm"
1003
-
gpu_memory: 80
1004
-
gpu_count: 2
1005
-
updated_at: "2024-01-01T00:00:00Z"
968
+
type: array
969
+
items:
970
+
$ref: "#/components/schemas/HardwareWithStatus"
1006
971
"403":
1007
972
description: "Unauthorized"
1008
973
content:
@@ -2646,10 +2611,10 @@ components:
2646
2611
2647
2612
HardwareWithStatus:
2648
2613
type: object
2649
-
description: Hardware configuration details including current availability status
2614
+
description: Hardware configuration details with optional availability status
2650
2615
required:
2651
2616
- object
2652
-
- name
2617
+
- id
2653
2618
- pricing
2654
2619
- specs
2655
2620
- updated_at
@@ -2658,7 +2623,7 @@ components:
2658
2623
type: string
2659
2624
enum:
2660
2625
- hardware
2661
-
name:
2626
+
id:
2662
2627
type: string
2663
2628
description: Unique identifier for the hardware configuration
0 commit comments