forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Obs AI Assistant] Handle token limit error (elastic#175871)
When the user reaches the token limit they would previously see a generic toast. This PR improves this case by handling the error and showing a more user friendly message. ### Before <img width="1484" alt="image" src="https://github.com/elastic/kibana/assets/209966/de6559fe-a98b-4c99-8995-8d43d1a56032"> ### After <img width="1502" alt="image" src="https://github.com/elastic/kibana/assets/209966/2a17117f-aa66-45e1-83dd-59c8133814c7"> ### Possible additional enhancements - Disable the prompt to avoid new messages that will fail anyway - Show an error icon instead of the normal assistant avatar-
- Loading branch information
Showing
6 changed files
with
84 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters