Skip to content

Commit cbcec1e

Browse files
committed
feat(rl): add required fields to rl objects
1 parent 0d0287d commit cbcec1e

1 file changed

Lines changed: 66 additions & 6 deletions

File tree

openapi.yaml

Lines changed: 66 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7723,6 +7723,8 @@ components:
77237723
description: Cursor to use as the 'after' parameter for the next page. Empty when has_more is false.
77247724
RL.EncodedText:
77257725
type: object
7726+
required:
7727+
- tokens
77267728
properties:
77277729
tokens:
77287730
description: Pre-tokenized text input
@@ -7732,8 +7734,9 @@ components:
77327734
- 456
77337735
- 789
77347736
items:
7735-
type: string
7736-
format: int64
7737+
oneOf:
7738+
- type: string
7739+
- type: integer
77377740
RL.DType:
77387741
type: string
77397742
enum:
@@ -7812,8 +7815,9 @@ components:
78127815
- 456
78137816
- 789
78147817
items:
7815-
type: string
7816-
format: int64
7818+
oneOf:
7819+
- type: string
7820+
- type: integer
78177821
dtype:
78187822
description: Data type of the integer array
78197823
$ref: '#/components/schemas/RL.DType'
@@ -7832,8 +7836,9 @@ components:
78327836
- 0
78337837
- 1
78347838
items:
7835-
type: string
7836-
format: int64
7839+
oneOf:
7840+
- type: string
7841+
- type: integer
78377842
dtype:
78387843
description: Data type of the integer array (must be D_TYPE_INT64)
78397844
$ref: '#/components/schemas/RL.DType'
@@ -7914,6 +7919,9 @@ components:
79147919
$ref: '#/components/schemas/RL.LossInputs'
79157920
RL.OptimStepOperation:
79167921
type: object
7922+
required:
7923+
- id
7924+
- status
79177925
properties:
79187926
id:
79197927
type: string
@@ -7928,6 +7936,9 @@ components:
79287936
$ref: '#/components/schemas/RL.TrainingOperationError'
79297937
RL.SampleOperation:
79307938
type: object
7939+
required:
7940+
- id
7941+
- status
79317942
properties:
79327943
id:
79337944
type: string
@@ -7943,6 +7954,8 @@ components:
79437954
$ref: '#/components/schemas/RL.TrainingOperationError'
79447955
RL.OptimStepResult:
79457956
type: object
7957+
required:
7958+
- step
79467959
properties:
79477960
step:
79487961
description: Step number
@@ -7951,6 +7964,8 @@ components:
79517964
example: 100
79527965
RL.SampleResult:
79537966
type: object
7967+
required:
7968+
- rollouts
79547969
properties:
79557970
rollouts:
79567971
type: array
@@ -7960,6 +7975,8 @@ components:
79607975
description: Completions grouped by prompt
79617976
RL.SampleRollout:
79627977
type: object
7978+
required:
7979+
- sequences
79637980
properties:
79647981
sequences:
79657982
type: array
@@ -7969,6 +7986,8 @@ components:
79697986
description: Completions generated for one prompt
79707987
RL.SampleSequence:
79717988
type: object
7989+
required:
7990+
- tokens
79727991
properties:
79737992
tokens:
79747993
type: array
@@ -7996,6 +8015,9 @@ components:
79968015
description: Reason for stopping generation
79978016
RL.ForwardBackwardOperation:
79988017
type: object
8018+
required:
8019+
- id
8020+
- status
79998021
properties:
80008022
id:
80018023
type: string
@@ -8011,6 +8033,8 @@ components:
80118033
$ref: '#/components/schemas/RL.TrainingOperationError'
80128034
RL.ForwardBackwardResult:
80138035
type: object
8036+
required:
8037+
- loss
80148038
properties:
80158039
loss:
80168040
type: number
@@ -8085,6 +8109,15 @@ components:
80858109
- TRAINING_SESSION_STATUS_EXPIRED
80868110
RL.TrainingSession:
80878111
type: object
8112+
required:
8113+
- id
8114+
- status
8115+
- base_model
8116+
- inference_checkpoints
8117+
- training_checkpoints
8118+
- step
8119+
- created_at
8120+
- updated_at
80888121
properties:
80898122
id:
80908123
type: string
@@ -8196,6 +8229,9 @@ components:
81968229
default: "0.1"
81978230
RL.InferenceCheckpointOperation:
81988231
type: object
8232+
required:
8233+
- id
8234+
- status
81998235
properties:
82008236
id:
82018237
type: string
@@ -8211,6 +8247,8 @@ components:
82118247
$ref: '#/components/schemas/RL.TrainingOperationError'
82128248
RL.InferenceCheckpointResult:
82138249
type: object
8250+
required:
8251+
- model_name
82148252
properties:
82158253
model_name:
82168254
type: string
@@ -8219,6 +8257,10 @@ components:
82198257
RL.InferenceCheckpoint:
82208258
type: object
82218259
description: Saved inference checkpoint
8260+
required:
8261+
- id
8262+
- step
8263+
- created_at
82228264
properties:
82238265
id:
82248266
type: string
@@ -8240,6 +8282,9 @@ components:
82408282
RL.InferenceCheckpointRegistration:
82418283
type: object
82428284
description: Model registration details for an inference checkpoint
8285+
required:
8286+
- model_name
8287+
- registered_at
82438288
properties:
82448289
model_name:
82458290
type: string
@@ -8253,6 +8298,10 @@ components:
82538298
RL.TrainingCheckpoint:
82548299
type: object
82558300
description: Saved training checkpoint
8301+
required:
8302+
- id
8303+
- step
8304+
- created_at
82568305
properties:
82578306
id:
82588307
type: string
@@ -8270,13 +8319,18 @@ components:
82708319
description: Timestamp when the checkpoint was created
82718320
RL.TrainingCheckpointResult:
82728321
type: object
8322+
required:
8323+
- checkpoint_id
82738324
properties:
82748325
checkpoint_id:
82758326
type: string
82768327
example: 550e8400-e29b-41d4-a716-446655440000
82778328
description: ID of the saved training checkpoint (use for resume via Start)
82788329
RL.TrainingCheckpointOperation:
82798330
type: object
8331+
required:
8332+
- id
8333+
- status
82808334
properties:
82818335
id:
82828336
type: string
@@ -8301,6 +8355,10 @@ components:
83018355
RL.CheckpointFile:
83028356
type: object
83038357
description: A downloadable file within a checkpoint
8358+
required:
8359+
- filename
8360+
- url
8361+
- size
83048362
properties:
83058363
filename:
83068364
type: string
@@ -8317,6 +8375,8 @@ components:
83178375
description: File size in bytes
83188376
RL.CheckpointDownloadResponse:
83198377
type: object
8378+
required:
8379+
- data
83208380
properties:
83218381
data:
83228382
type: array

0 commit comments

Comments
 (0)