Skip to content
New issue

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

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

Already on GitHub? # to your account

Make the stop generation button visible during model response. #2561

Merged
merged 3 commits into from
Jul 10, 2024

Conversation

manyoso
Copy link
Collaborator

@manyoso manyoso commented Jul 4, 2024

This ensures that it is always clear when the response is still being generated and it also makes it easier to stop generation. Seems like a decent solution?


🚀 This description was created by Ellipsis for commit 4fdab84

Summary:

Moved the stop generation button to a more prominent location and ensured its visibility during response generation in gpt4all-chat/qml/ChatView.qml, with theme property updates in gpt4all-chat/qml/Theme.qml.

Key points:

  • Modified gpt4all-chat/qml/ChatView.qml to move the stopButton outside the conversation tray and make it always visible during response generation.
  • Updated stopButton visibility conditions to currentChat.responseInProgress && !currentChat.isServer.
  • Renamed theme properties in gpt4all-chat/qml/Theme.qml:
    • sendButtonBackground to conversationInputButtonBackground
    • sendButtonBackgroundHovered to conversationInputButtonBackgroundHovered.
  • Ensured stopButton is more accessible and easier to use during response generation.

Generated with ❤️ by ellipsis.dev

Signed-off-by: Adam Treat <treat.adam@gmail.com>
@cebtenzzre
Copy link
Member

Hm, that doesn't seem like an obvious place for the button, compared to where it was in v2.8.0 - especially since sending otherwise works while the LLM is responding (though maybe that's itself an issue). Maybe it should at least be a different color, so it's more noticeable?

image

@manyoso
Copy link
Collaborator Author

manyoso commented Jul 8, 2024

This was another inspiration from ChatGPT which has this now and also noticing that the 'send message' shouldn't be enabled when the model is in middle of response:

image

@giardiv
Copy link

giardiv commented Jul 9, 2024

That's really nice touch, makes so much sense to add it here – I think it would look nicer if we could signify a bit more that it's a button by using a light background gray-120 and a border 1px gray-200

What do you think of it?

CleanShot 2024-07-09 at 12 01 28@2x

cebtenzzre and others added 2 commits July 9, 2024 12:19
Without this change, the message can still be sent using the Enter key,
even though the "Stop" icon is visible.

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
Signed-off-by: Adam Treat <treat.adam@gmail.com>
@manyoso
Copy link
Collaborator Author

manyoso commented Jul 9, 2024

Done
image

@cebtenzzre cebtenzzre merged commit a8cdba0 into main Jul 10, 2024
6 of 12 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants