Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate Continuous Mode in Chat System #5167

Merged
merged 9 commits into from
Sep 6, 2023

Commits on Sep 6, 2023

  1. Make input and additionalInput optional in StepRequestBody

    Updated the StepRequestBody class to allow both 'input' and 'additionalInput' to be optional. Added logic in toJson() method to return an empty JSON object if both fields are null.
    hunteraraujo committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    a7c37da View commit details
    Browse the repository at this point in the history
  2. Implement Continuous Mode in ChatViewModel

    Added a new state variable `_isContinuousMode` to the ChatViewModel to track whether the chat is in continuous mode or not. This state is toggled via a setter and triggers UI updates through `notifyListeners()`.
    
    Enhanced the `sendChatMessage` method to automatically send a null message if continuous mode is active, triggering the next step in the chat.
    hunteraraujo committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    5cd1aba View commit details
    Browse the repository at this point in the history
  3. Refactor ChatInputField to Support Continuous Mode

    - Added a new boolean state `isContinuousMode` to the `ChatInputField` widget to handle the continuous mode feature.
    - Introduced a new callback function `onContinuousModePressed` to manage the state of the continuous mode from an external source.
    - Conditionally rendered the send button based on the `isContinuousMode` state.
    - Enhanced the UI by adding a button to toggle between continuous mode and single message mode, which triggers the `onContinuousModePressed` callback.
    hunteraraujo committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    d80053e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d3b4b50 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4e499c5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2e62c51 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    27e9868 View commit details
    Browse the repository at this point in the history
  8. Fix empty user chats

    hunteraraujo committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    a8023c2 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a933f11 View commit details
    Browse the repository at this point in the history