Fix AI comments summary streaming
What does this MR do and why?
Fix AI comments summary streaming Use the new sendDuoChatCommand util in ai summary feature to fix loading and streaming. This is behind a FF summarize_notes_with_duo
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
Screen_Recording_2024-07-23_at_12.43.31_PM | Screen_Recording_2024-07-23_at_10.15.14_AM |
How to set up and validate locally
- Setup AI features - https://docs.gitlab.com/ee/development/ai_features/
- Enable
summarize_notes_with_duo
feature flag - Go to an Issue with comments
- Click "Summarize comments" button
- Result opens in duo drawer
- Notice the loading state works correctly
- Notice the answer is streaming
Edited by Frédéric Caplette