-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for stopping prompt response generation (#1484)
* Implement trash can button stopping response mid-generation * Implement preventing generation (attempting to delete before any tokens are generated) * Remove unused imports * Standardize Redis clients to use decode_responses=False * Refactor deletePrompt to use consts * Fix code formatting * Change delete_prompt to delete_or_stop_prompt with POST method * Refactor to use JSON * Update chat.py --------- Co-authored-by: Juan Calderon-Perez <[email protected]>
- Loading branch information
1 parent
5c8d77a
commit 3d407be
Showing
2 changed files
with
44 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters