feat: Add regenrate response functionality#360
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a significant enhancement to the chatbot's user experience by enabling the regeneration of bot responses. This feature allows users to easily request a new answer to their last prompt, streamlining interactions and providing more control over the conversation flow, all while maintaining existing configuration-driven feedback settings. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new "Regenerate Response" feature to the chatbot. Key changes include defining new message version types, implementing regeneration logic within Bot.tsx (including parseConfigBoolean, getLastApiMessageIndex, canRegenerateResponse, and handleRegenerateResponse), and integrating a new RegenerateResponseButton into the BotBubble component. The handleSubmit function was updated to support skipping user message addition during regeneration. Review feedback points out a redundancy in the handleRegenerateResponse logic and suggests renaming the DeleteIcon component and its file to RefreshIcon for improved clarity, as it is used for the regenerate functionality.
e4c0e0d to
6e51cf1
Compare
add a regenerate control to feedback actions andrerun the latest prompt without duplicating the user message - coupled with chatflow config
4469e7a to
a4d9e6f
Compare
Add a regenerate control to feedback actions. This will allow reruns of the latest prompt without duplicating the user message, while keeping config-driven enablement from Flowise chat feedback settings.