θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

Conversation

@timothycarambat
Copy link
Member

Pull Request Type

  • ✨ feat
  • πŸ› fix
  • ♻️ refactor
  • πŸ’„ style
  • πŸ”¨ chore
  • πŸ“ docs

Relevant Issues

resolves #540

What is in this change?

Implement stop generation button during pending streaming response that prevents the response from continuing but preserves the already rendered and stored text.

This executes on the client side as well as termination of the connection on express side.

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

@timothycarambat timothycarambat merged commit 0e46a11 into master Mar 12, 2024
@timothycarambat timothycarambat deleted the 540-stop-generation-button branch March 12, 2024 22:21
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
* Stop generation button during stream-response

* add custom stop icon

* add stop to thread chats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible to add "STOP" button if user does not like the AI's response?

2 participants