Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/prime/src/prime_cli/api/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class HostedTrainingRunResponse(BaseModel):
"""Response from POST /v1/training/runs."""

run_id: str = Field(..., alias="runId")
job_id: str = Field(..., alias="jobId")
token_value: str = Field(..., alias="tokenValue")

model_config = ConfigDict(populate_by_name=True)
Expand Down
7 changes: 2 additions & 5 deletions packages/prime/src/prime_cli/commands/rl.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ def _warn(msg: str) -> None:
# binds it via secretKeyRef and printing it leaks credentials
# into automation logs.
output_data_as_json(
{"run": {"runId": result.run_id, "jobId": result.job_id}},
{"run": {"runId": result.run_id}},
console,
)
return
Expand All @@ -962,10 +962,7 @@ def _warn(msg: str) -> None:
# per-run k8s Secret automatically (orchestrator's PRIME_API_KEY env
# via secretKeyRef). Surfacing it on stdout makes it easy to leak into
# shared shell history/CI logs without buying anything for the user.
console.print(
f"[green]Dispatched[/green] hosted run [bold]{result.run_id}[/bold] "
f"(job [dim]{result.job_id}[/dim])"
)
console.print(f"[green]Dispatched[/green] hosted run [bold]{result.run_id}[/bold]")


def load_config(path: str) -> RLConfig:
Expand Down
Loading