Conversation
✱ Stainless preview buildsThis PR will update the go openapi python terraform typescript ✅ togetherai-python studio · code
✅ togetherai-go studio · code
✅ togetherai-terraform studio · code
⏳ These are partial results; builds are still running. This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push. |
khaykingleb
approved these changes
Mar 17, 2026
VProv
approved these changes
Mar 17, 2026
Co-authored-by: Gleb Khaykin <khaykingleb@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Syncs the OpenAPI spec with
api.swagger.yaml(together-shaping) for the RL save/resume training checkpoint feature.Changes
Session create (Start)
RL.StartTrainingSessionRequest: Replacedcheckpoint_idwithresume_from_checkpoint_id(optional string) so the spec matches the backend. Description: "Checkpoint ID to resume from."Session response
RL.TrainingSession: Added:training_checkpoints: Array ofRL.TrainingCheckpoint(list of saved training checkpoints for the session).resume_from_checkpoint_id: Optional string (checkpoint this session was resumed from).New endpoints
/rl/training-sessions/{session_id}/operations/training-checkpointcreateTrainingCheckpoint: Submits a save-training-checkpoint operation (adapter + optimizer + step to object storage). ReturnsRL.TrainingCheckpointOperation./rl/training-sessions/{session_id}/operations/training-checkpoint/{operation_id}getTrainingCheckpointOperation: Returns status and result of a save-training-checkpoint operation.New schemas
RL.TrainingCheckpoint:id,step,created_at(saved training checkpoint item).RL.TrainingCheckpointResult:checkpoint_id(used for resume via Start).RL.TrainingCheckpointOperation:id,status,output,error(same shape as inference checkpoint operation).