mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-06 18:48:50 +01:00
WIP: fix: fix abort messages and continue conversation on abort
feat(askOpenAI.js): add abort endpoint to cancel requests feat(MessageHandler): add abort functionality to cancel requests feat(submission.js): add lastResponse and source atoms to store feat(handleSubmit.js): add stopGenerating function to cancel requests
This commit is contained in:
parent
5fbefa15ce
commit
88aea81288
5 changed files with 88 additions and 12 deletions
|
|
@ -31,7 +31,19 @@ const isSubmitting = atom({
|
|||
default: false,
|
||||
});
|
||||
|
||||
const lastResponse = atom({
|
||||
key: "lastResponse",
|
||||
default: '',
|
||||
});
|
||||
|
||||
const source = atom({
|
||||
key: "source",
|
||||
default: null,
|
||||
});
|
||||
|
||||
export default {
|
||||
submission,
|
||||
isSubmitting,
|
||||
lastResponse,
|
||||
source,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue