Skip to content

Commit

Permalink
Update packages/module/patternfly-docs/content/extensions/virtual-ass…
Browse files Browse the repository at this point in the history
…istant/examples/ChatbotFooter/ChatbotFooter.md

Co-authored-by: Erin Donehoo <[email protected]>
  • Loading branch information
rebeccaalpert and edonehoo committed Oct 30, 2024
1 parent 7c2c1a0 commit c890997
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Attachments can also be added to the chatbot via [drag and drop.](/patternfly-ai

If you are using streaming, you can add a stop button to the message bar that allows users to stop a response from a chatbot.

Setting `hasStopButton` to true and passing in a `handleStopButton` callback function will enable the stop button. You can use this callback to trigger an [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) configured as part of your API call.
To enable the stop button, set `hasStopButton` to `true` and pass in a `handleStopButton` callback function. You can use this callback to trigger an [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) configured as part of your API call.

```js file="./ChatbotMessageBarStop.tsx"

Expand Down

0 comments on commit c890997

Please sign in to comment.