MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / start_training

Function start_training

trainer/src/trainer/main.py:52–56  ·  view source on GitHub ↗
(
    fine_tune_id: str, base_url: str, require_auth=fastapi.Depends(require_auth)
)

Source from the content-addressed store, hash-verified

50
51@web_app.post("/start_training", operation_id="start_training", response_model=STOutput)
52async def start_training(
53 fine_tune_id: str, base_url: str, require_auth=fastapi.Depends(require_auth)
54):
55 call = await train.spawn.aio(fine_tune_id, base_url)
56 return fastapi.responses.JSONResponse({"call_id": call.object_id}, status_code=202)
57
58
59class TSOutput(BaseModel):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected