promptRequestCancel

Triggered when a prompt request is cancelled, typically by clicking the stop generation button during streaming operations.

Event Data

e.output Object (optional)

The output object being generated when the cancellation occurred.

Example

<div id="aiprompt"></div>
<script>
$("#aiprompt").kendoAIPrompt({
    promptRequestCancel: function(e) {
        console.log("Request cancelled for output:", e.output);
        // Abort any ongoing API requests here
    }
});
</script>
In this article
promptRequestCancel
Not finding the help you need?
Contact Support