From d5eb380e192dabd8d11dc5cb58e79c944d028ace Mon Sep 17 00:00:00 2001 From: mehmettokgoz Date: Sun, 25 Feb 2024 18:06:28 +0300 Subject: [PATCH] Add documentation. --- prediction.go | 1 + 1 file changed, 1 insertion(+) diff --git a/prediction.go b/prediction.go index 93e180d..84e3921 100644 --- a/prediction.go +++ b/prediction.go @@ -142,6 +142,7 @@ func (r *Client) GetPrediction(ctx context.Context, id string) (*Prediction, err return prediction, nil } +// CancelPrediction cancels a running prediction by its ID. func (r *Client) CancelPrediction(ctx context.Context, id string) (*Prediction, error) { prediction := &Prediction{} err := r.fetch(ctx, "POST", fmt.Sprintf("/predictions/%s/cancel", id), nil, prediction)