Skip to content

Commit

Permalink
Add documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmettokgoz committed Feb 25, 2024
1 parent 0e52d08 commit d5eb380
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prediction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d5eb380

Please sign in to comment.