(
fine_tune_id: str, base_url: str, require_auth=fastapi.Depends(require_auth)
)
| 50 | |
| 51 | @web_app.post("/start_training", operation_id="start_training", response_model=STOutput) |
| 52 | async 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 | |
| 59 | class TSOutput(BaseModel): |
nothing calls this directly
no outgoing calls
no test coverage detected