Skip to content

Commit b1d2bff

Browse files
committed
chore: Update cluster apis to reflect their new response shape
1 parent d9c63b8 commit b1d2bff

File tree

1 file changed

+28
-42
lines changed

1 file changed

+28
-42
lines changed

openapi.yaml

Lines changed: 28 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3979,7 +3979,7 @@ paths:
39793979
content:
39803980
application/json:
39813981
schema:
3982-
$ref: '#/components/schemas/GPUClusterCreateResponse'
3982+
$ref: '#/components/schemas/GPUClusterInfo'
39833983
x-codeSamples:
39843984
- lang: Python
39853985
label: Together AI SDK (v2)
@@ -4106,7 +4106,7 @@ paths:
41064106
content:
41074107
application/json:
41084108
schema:
4109-
$ref: '#/components/schemas/GPUClusterUpdateResponse'
4109+
$ref: '#/components/schemas/GPUClusterInfo'
41104110
x-codeSamples:
41114111
- lang: Python
41124112
label: Together AI SDK (v2)
@@ -4164,7 +4164,11 @@ paths:
41644164
content:
41654165
application/json:
41664166
schema:
4167-
$ref: '#/components/schemas/GPUCLusterDeleteResponse'
4167+
type: object
4168+
required: [cluster_id]
4169+
properties:
4170+
cluster_id:
4171+
type: string
41684172
x-codeSamples:
41694173
- lang: Python
41704174
label: Together AI SDK (v2)
@@ -4227,7 +4231,7 @@ paths:
42274231
content:
42284232
application/json:
42294233
schema:
4230-
$ref: '#/components/schemas/SharedVolumes'
4234+
$ref: '#/components/schemas/GPUClustersSharedVolumes'
42314235
x-codeSamples:
42324236
- lang: Python
42334237
label: Together AI SDK (v2)
@@ -4269,15 +4273,15 @@ paths:
42694273
content:
42704274
application/json:
42714275
schema:
4272-
$ref: '#/components/schemas/SharedVolumeUpdateRequest'
4276+
$ref: '#/components/schemas/GPUClustersSharedVolumeUpdateRequest'
42734277
required: true
42744278
responses:
42754279
"200":
42764280
description: OK
42774281
content:
42784282
application/json:
42794283
schema:
4280-
$ref: '#/components/schemas/SharedVolumeInfo'
4284+
$ref: '#/components/schemas/GPUClustersSharedVolume'
42814285
x-codeSamples:
42824286
- lang: Python
42834287
label: Together AI SDK (v2)
@@ -4331,15 +4335,15 @@ paths:
43314335
content:
43324336
application/json:
43334337
schema:
4334-
$ref: '#/components/schemas/SharedVolumeCreateRequest'
4338+
$ref: '#/components/schemas/GPUClustersSharedVolumeCreateRequest'
43354339
required: true
43364340
responses:
43374341
"200":
43384342
description: OK
43394343
content:
43404344
application/json:
43414345
schema:
4342-
$ref: '#/components/schemas/SharedVolumeCreateResponse'
4346+
$ref: '#/components/schemas/GPUClustersSharedVolume'
43434347
x-codeSamples:
43444348
- lang: Python
43454349
label: Together AI SDK (v2)
@@ -4399,7 +4403,7 @@ paths:
43994403
content:
44004404
application/json:
44014405
schema:
4402-
$ref: '#/components/schemas/SharedVolumeInfo'
4406+
$ref: '#/components/schemas/GPUClustersSharedVolume'
44034407
x-codeSamples:
44044408
- lang: Python
44054409
label: Together AI SDK (v2)
@@ -4449,7 +4453,7 @@ paths:
44494453
content:
44504454
application/json:
44514455
schema:
4452-
$ref: '#/components/schemas/SharedVolumeDeleteResponse'
4456+
$ref: '#/components/schemas/GPUClustersSharedVolumeDeleteResponse'
44534457
x-codeSamples:
44544458
- lang: Python
44554459
label: Together AI SDK (v2)
@@ -6500,12 +6504,6 @@ components:
65006504
type: integer
65016505
message:
65026506
type: string
6503-
GPUCLusterDeleteResponse:
6504-
type: object
6505-
required: ['cluster_id']
6506-
properties:
6507-
cluster_id:
6508-
type: string
65096507
GPUClusterControlPlaneNode:
65106508
type: object
65116509
required:
@@ -6538,7 +6536,6 @@ components:
65386536
- gpu_type
65396537
- num_gpus
65406538
- cluster_name
6541-
- duration_days
65426539
- driver_version
65436540
- billing_type
65446541
type: object
@@ -6578,20 +6575,14 @@ components:
65786575
- CUDA_12_6_565
65796576
- CUDA_12_8_570
65806577
shared_volume:
6581-
$ref: '#/components/schemas/SharedVolumeCreateRequest'
6578+
$ref: '#/components/schemas/GPUClustersSharedVolumeCreateRequest'
65826579
volume_id:
65836580
type: string
65846581
billing_type:
65856582
type: string
65866583
enum:
65876584
- RESERVED
65886585
- ON_DEMAND
6589-
GPUClusterCreateResponse:
6590-
type: object
6591-
required: ['cluster_id']
6592-
properties:
6593-
cluster_id:
6594-
type: string
65956586
GPUClusterGPUWorkerNode:
65966587
type: object
65976588
required:
@@ -6700,12 +6691,6 @@ components:
67006691
enum: [KUBERNETES, SLURM]
67016692
num_gpus:
67026693
type: integer
6703-
GPUClusterUpdateResponse:
6704-
type: object
6705-
required: [cluster_id]
6706-
properties:
6707-
cluster_id:
6708-
type: string
67096694
GPUClusterVolume:
67106695
type: object
67116696
required:
@@ -6773,7 +6758,7 @@ components:
67736758
type: array
67746759
items:
67756760
$ref: '#/components/schemas/Region'
6776-
SharedVolumeCreateRequest:
6761+
GPUClustersSharedVolumeCreateRequest:
67776762
type: object
67786763
required:
67796764
- volume_name
@@ -6788,46 +6773,47 @@ components:
67886773
region:
67896774
type: string
67906775
description: Region name. Usable regions can be found from `client.clusters.list_regions()`
6791-
SharedVolumeCreateResponse:
6792-
type: object
6793-
required: [volume_id]
6794-
properties:
6795-
volume_id:
6796-
type: string
6797-
SharedVolumeDeleteResponse:
6776+
GPUClustersSharedVolumeDeleteResponse:
67986777
type: object
67996778
required: [success]
68006779
properties:
68016780
success:
68026781
type: boolean
6803-
SharedVolumeInfo:
6782+
GPUClustersSharedVolume:
68046783
type: object
68056784
required:
68066785
- volume_id
68076786
- volume_name
68086787
- size_tib
6788+
- status
68096789
properties:
68106790
volume_id:
68116791
type: string
68126792
volume_name:
68136793
type: string
68146794
size_tib:
68156795
type: integer
6816-
SharedVolumeUpdateRequest:
6796+
status:
6797+
type: string
6798+
enum:
6799+
- available
6800+
- bound
6801+
- provisioning
6802+
GPUClustersSharedVolumeUpdateRequest:
68176803
type: object
68186804
properties:
68196805
volume_id:
68206806
type: string
68216807
size_tib:
68226808
type: integer
6823-
SharedVolumes:
6809+
GPUClustersSharedVolumes:
68246810
type: object
68256811
required: [volumes]
68266812
properties:
68276813
volumes:
68286814
type: array
68296815
items:
6830-
$ref: '#/components/schemas/SharedVolumeInfo'
6816+
$ref: '#/components/schemas/GPUClustersSharedVolume'
68316817
ListVoicesResponse:
68326818
description: Response containing a list of models and their available voices.
68336819
type: object

0 commit comments

Comments
 (0)