Skip to main content

complete

Function complete 

Source
pub async fn complete(
    __arg0: State<PredictCtx>,
    __arg1: Json<CompleteBody>,
) -> Response
Expand description

POST /api/predict/complete — return one inline suggestion for the caret context. Always 200 with a (possibly empty) suggestion; refusals carry a reason rather than an error status, so the dumb overlay never has to branch on HTTP codes.