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

Function export_weights

trainer/src/trainer/main.py:85–92  ·  view source on GitHub ↗
(
    export_id: str,
    base_url: str,
    require_auth=fastapi.Depends(require_auth),
)

Source from the content-addressed store, hash-verified

83
84@web_app.post("/export_weights", operation_id="export_weights")
85async def export_weights(
86 export_id: str,
87 base_url: str,
88 require_auth=fastapi.Depends(require_auth),
89):
90 logging.info(f"Kicking off export for request {export_id}")
91 call = await do_export_weights.spawn.aio(export_id, base_url)
92 return fastapi.responses.JSONResponse({"call_id": call.object_id}, status_code=202)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected